tomrijndorp / vscode-finditfaster

Find it, but faster! Fast file search for VS Code.
MIT License
252 stars 25 forks source link

slow performance #98

Open wahyuabrory opened 2 weeks ago

wahyuabrory commented 2 weeks ago

Type: Performance Issue

everytime when i use this extension, the loading from opening terminal and loading to file, it annoys me

Extension version: 0.0.36 VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.22631 Modes: Unsupported

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5600H with Radeon Graphics (12 x 3294)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.34GB (2.18GB free)| |Process Argv|C:\\Users\\abrory\\Desktop\\Final Project Mobile\\e-learning-app-master --crash-reporter-id bf79b9fc-f600-41c3-8cf9-39c74fc9eb14| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 138 6652 code main 0 90 1592 ptyHost 0 70 4984 "C:\Program Files\PowerShell\7\pwsh.exe" -noexit -command "try { . \"c:\Users\abrory\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 6 22540 conpty-agent 0 7 24724 conpty-agent 0 98 27876 "C:\Program Files\PowerShell\7\pwsh.exe" -noexit -command "try { . \"c:\Users\abrory\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 13 2404 "C:\ProgramData\chocolatey\bin\fzf.exe" --delimiter : --ansi --cycle --bind "change:reload:powershell -m Start-Sleep .1; rg --column --hidden --line-number --no-heading --color=always --smart-case --colors \"match:fg:green\" --colors \"path:fg:white\" --colors \"path:style:nobold\" --glob \"!**/.git/\" --glob \"!**/node_modules\" --glob \"!**/bower_components\" --glob \"!**/*.code-search\" {q} ; ''" --preview "bat --decorations=always --color=always {1} --highlight-line {2} --style=header,grid" --preview-window right:border-left:50%:+{2}+3/3:~3 0 14 26960 "C:\ProgramData\chocolatey\lib\fzf\tools\fzf.exe" --delimiter : --ansi --cycle --bind "change:reload:powershell -m Start-Sleep .1; rg --column --hidden --line-number --no-heading --color=always --smart-case --colors \"match:fg:green\" --colors \"path:fg:white\" --colors \"path:style:nobold\" --glob \"!**/.git/\" --glob \"!**/node_modules\" --glob \"!**/bower_components\" --glob \"!**/*.code-search\" {q} ; ''" --preview "bat --decorations=always --color=always {1} --highlight-line {2} --style=header,grid" --preview-window right:border-left:50%:+{2}+3/3:~3 0 278 9892 window [3] (main.dart - e_learning_app - Visual Studio Code) 0 25 10276 crashpad-handler 0 109 13488 shared-process 0 41 15880 utility-network-service 0 86 16824 fileWatcher [2] 0 410 17336 extensionHost [2] 0 112 1428 electron-nodejs (languageserver.js ) 0 115 8520 "C:\Users\abrory\AppData\Local\Programs\Microsoft VS Code\Code.exe" c:\Users\abrory\.vscode\extensions\streetsidesoftware.code-spell-checker-3.0.1\packages\_server\dist\main.cjs --node-ipc --clientProcessId=17336 0 7 12360 C:\windows\system32\cmd.exe /d /s /c ""C:\src\flutter\bin\flutter.bat" "daemon"" 0 11 7428 C:\windows\system32\conhost.exe 0x4 0 108 25432 electron-nodejs (config.js ) 0 424 17000 C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe language-server --protocol=lsp --client-id=VS-Code --client-version=3.90.0 0 11 11988 C:\windows\system32\conhost.exe 0x4 0 99 28792 electron-nodejs (server.js ) 0 97 29160 C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe devtools --machine --allow-embedding 0 11 13328 C:\windows\system32\conhost.exe 0x4 0 231 18680 gpu-process 0 250 21084 extensionHost [3] 0 14 1540 C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe devtools --machine --allow-embedding 0 6 23072 C:\windows\system32\conhost.exe 0x4 0 38 12228 C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe language-server --protocol=lsp --client-id=VS-Code --client-version=3.90.0 0 6 2376 C:\windows\system32\conhost.exe 0x4 0 82 18132 electron-nodejs (languageserver.js ) 0 6 18148 C:\windows\system32\cmd.exe /d /s /c ""C:\src\flutter\bin\flutter.bat" "daemon"" 0 6 2608 C:\windows\system32\conhost.exe 0x4 0 60 22600 electron-nodejs (config.js ) 0 4 13876 C:\Users\abrory\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l 0 6 29228 C:\windows\system32\conhost.exe 0x4 0 99 21536 "C:\Users\abrory\AppData\Local\Programs\Microsoft VS Code\Code.exe" c:\Users\abrory\.vscode\extensions\streetsidesoftware.code-spell-checker-3.0.1\packages\_server\dist\main.cjs --node-ipc --clientProcessId=21084 0 82 25308 electron-nodejs (server.js ) 0 29 25920 c:\Users\abrory\.vscode\extensions\oracle.mysql-shell-for-vs-code-1.14.2-win32-x64\shell\bin\mysqlsh.exe --no-defaults --py -e "gui.start.web_server(port=33336, secure={}, read_token_on_stdin=True)" 0 6 11192 C:\windows\system32\conhost.exe 0x4 0 84 22520 window 0 260 26212 window [2] (Running Extensions - ternak_uang - Visual Studio Code) 0 110 27936 window [4] (Issue Reporter) 0 85 28728 fileWatcher [3] ```
Workspace Info ``` | Window (main.dart - e_learning_app - Visual Studio Code) | Window (Running Extensions - ternak_uang - Visual Studio Code) | Folder (e_learning_app): 204 files | File types: png(53) dart(27) ttf(9) xml(5) json(4) plist(4) | gitignore(3) gradle(3) properties(3) md(3) | Conf files: | Folder (ternak_uang): 543 files | File types: png(38) old(25) log(12) xml(12) dart(11) xcconfig(10) | json(9) stamp(9) h(9) plist(7) | Conf files: cmake(3); ```
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 g316j359:31013175 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 legacy_priority:31077528 ```
zivkaplan commented 1 week ago

@tomrijndorp I think that maybe we can use tmux to improve the performance? Instead of relying on an existing terminal - we can open a tmux process and reattach each time when opening a terminal instead of re-init. What do you think? SHould we explore this direction? Do you have another idea?

tomrijndorp commented 1 week ago

If the terminal is being reinitialized every time for you, that’s not what I’d expect. The intent is that the terminal session remains open (indeed for performance reasons). If that’s the case, using tmux won’t improve performance. So there must be something about your current setup I don’t understand :)

On Tue, 25 Jun 2024 at 01:35 Ziv Kaplan @.***> wrote:

@tomrijndorp https://github.com/tomrijndorp I think that maybe we can use tmux to improve the performence? Instead of relying on an existing terminal - we can open a tmux process and reattach each time when opening a terminal instead of re-init. What do you think? SHould we explore this direction? Do you have another idea?

— Reply to this email directly, view it on GitHub https://github.com/tomrijndorp/vscode-finditfaster/issues/98#issuecomment-2188309526, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYSIG7KQHW2GXRDZMQNOOLZJETUVAVCNFSM6AAAAABJPFGDCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYGMYDSNJSGY . You are receiving this because you were mentioned.Message ID: @.***>