Jiawei Duan

Results 40 comments of Jiawei Duan

Hi, thanks for your interest in this app. Will take a look later, I have not encountered this issue from my end yet.

Thanks for the suggestion, will add an option to configure in the future.

Hi, for me it's the general Set-PSReadlineOption. Even a single Set-PSReadlineOption will introduce over 100 ms delay. If it's not reproducible I assume there is something wrong from my end,...

That's true. ![image](https://github.com/PowerShell/PSReadLine/assets/8088354/8222346e-36df-410b-961f-00eb453e0efa) Thanks for the instruction. I am indeed a starter for C# but will give it a try

Thanks for the suggestion. I can take a look, but honestly, I don't think that's the reason. I have disabled Defender.

Let me put some profiling result here. I am using [prefview](https://github.com/microsoft/perfview) to profile, each configuration is executed 10 times for averaging. ![image](https://github.com/PowerShell/PSReadLine/assets/8088354/bd4255b6-e3f7-40a6-aa3b-f4f30ba2b697) Fig. 1 With PSReadLine option: `Set-PSReadLineOption -EditMode Emacs`...

Flame graphs ![image](https://github.com/PowerShell/PSReadLine/assets/8088354/e20ea858-8e0f-4906-806b-fc9749e7af13) Fig. 1 With PSReadLine option: Set-PSReadLineOption -EditMode Emacs ![image](https://github.com/PowerShell/PSReadLine/assets/8088354/2ea85ca5-7d23-4d49-a6da-d4e69632d11d) Fig. 2 Without PSReadLine option

[PerfViewDataNoOptionLoop.View1.perfView.xml.zip](https://github.com/user-attachments/files/15519613/PerfViewDataNoOptionLoop.View1.perfView.xml.zip) [PerfViewDataWithOptionLoop.View1.perfView.xml.zip](https://github.com/user-attachments/files/15519614/PerfViewDataWithOptionLoop.View1.perfView.xml.zip)

I am not sure if this information is sufficient to help diagnose the issue, but if not, please let me know and I can provide more details. I am much...

Hi @StevenBucher98, it increases with any line with `Set-PSReadlineOption`. However, adding one config line of `Set-PSReadlineOption` takes about same time as adding four or five.