wix-incubator / vscode-glean

The extension provides refactoring tools for your React codebase
MIT License
1.46k stars 56 forks source link

Takes too long to save files #189

Open samarpit-santoki opened 1 year ago

samarpit-santoki commented 1 year ago

Type: Performance Issue

While saving files with 1000+ lines of code it takes too long to save it.

Extension version: 5.2.2 VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.23486 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 4600H with Radeon Graphics (12 x 2994)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.37GB (5.72GB free)| |Process Argv|--crash-reporter-id 78801ff7-4253-4652-b8ab-22e696c6dff8| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 1 125 14136 code main 0 40 7296 utility-network-service 0 93 8564 fileWatcher [1] 0 84 10040 ptyHost 0 6 1604 console-window-host (Windows internal process) 0 81 15020 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 7 14668 C:\WINDOWS\system32\cmd.exe /c ""C:\Program Files\nodejs\npx.cmd" vite --port=4000" 0 50 21896 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npx-cli.js" vite --port=4000 0 7 10940 C:\WINDOWS\system32\cmd.exe /d /s /c vite --port=4000 0 80 19692 electron-nodejs (vite.js ) 0 14 14716 C:\Users\kanos\OneDrive\Desktop\Urbano\UrbanHealthFrontend\node_modules\@esbuild\win32-x64\esbuild.exe --service=0.17.19 --ping 0 7 15344 console-window-host (Windows internal process) 0 79 23596 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 7 18252 C:\WINDOWS\system32\cmd.exe /c ""C:\Program Files\nodejs\npm.cmd" run start" 0 39 22000 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" run start 0 7 21268 C:\WINDOWS\system32\cmd.exe /d /s /c vite 0 139 14780 electron-nodejs (vite.js ) 0 17 7600 C:\Users\kanos\OneDrive\Desktop\Urbano\UrbanHealthFrontend\node_modules\@esbuild\win32-x64\esbuild.exe --service=0.17.19 --ping 4 1035 10456 extensionHost [1] 0 117 15956 electron-nodejs ("C:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\kanos\.vscode\extensions\dbaeumer.vscode-eslint-2.4.2\server\out\eslintServer.js --node-ipc --clientProcessId=10456) 5 234 11060 extensionHost [1] 0 131 12068 electron-nodejs ("C:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName C:\Users\kanos\AppData\Local\Temp\vscode-typescript\e0a5e5625891adccf2ba\tscancellation-e962cce30119a694ece2.tmp* --globalPlugins @monodon/typescript-nx-imports-plugin --pluginProbeLocations c:\Users\kanos\.vscode\extensions\nrwl.angular-console-18.3.0 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 6 43 15208 powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -NoLogo -NoExit -Command - 0 9 4172 console-window-host (Windows internal process) 9 137 16936 electron-nodejs ("C:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node --max-old-space-size=3072 "c:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js" --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\kanos\AppData\Local\Temp\vscode-typescript\e0a5e5625891adccf2ba\tscancellation-2f8c3f34162e8a4ee85f.tmp* --globalPlugins @monodon/typescript-nx-imports-plugin --pluginProbeLocations c:\Users\kanos\.vscode\extensions\nrwl.angular-console-18.3.0 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 90 13568 electron-nodejs ("C:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:/Users/kanos/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js" --globalTypingsCacheLocation C:/Users/kanos/AppData/Local/Microsoft/TypeScript/5.1 --enableTelemetry --typesMapLocation "c:/Users/kanos/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib/typesMap.json" --validateDefaultNpmLocation) 0 120 19760 electron-nodejs ("C:\Users\kanos\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\kanos\.vscode\extensions\mongodb.mongodb-vscode-1.0.2\dist\languageServer.js --node-ipc --clientProcessId=11060) 5 436 17996 window [1] (VisitorTable.jsx - UrbanHealthFrontend - Visual Studio Code) 1 30 19216 crashpad-handler 1 114 21560 shared-process 1 139 21940 gpu-process 0 500 22632 extensionHost [1] 0 7 15968 C:\WINDOWS\system32\cmd.exe /d /s /c "npx nx daemon --stop" 0 11 11528 console-window-host (Windows internal process) 0 74 12400 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npx-cli.js" nx daemon --stop 0 7 10744 C:\WINDOWS\system32\cmd.exe /d /s /c nx daemon --stop 0 49 12580 electron-nodejs (nx.js ) 0 7 20684 C:\WINDOWS\system32\cmd.exe /d /s /c "npm view nx@latest version" 0 4 17528 C:\WINDOWS\system32\cmd.exe /c CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g 1 49 19588 "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g 0 5 23060 "C:\Program Files\Google\Drive File Stream\77.0.3.0\crashpad_handler.exe" --database=C:\Users\kanos\AppData\Local\Google\DriveFS\Crashpad --url=https://clients2.google.com/cr/report --annotation=application=Code.exe --annotation=prod=DriveFS --annotation=ver=77.0.3.0 --initial-client-data=0x1488,0x1498,0x1484,0x1494,0x17d4,0x7ff9cb4a7550,0x7ff9cb4a7560,0x7ff9cb4a7570 1 95 23428 window [2] (Issue Reporter) ```
Workspace Info ``` | Window (VisitorTable.jsx - UrbanHealthFrontend - Visual Studio Code) | Folder (UrbanHealthFrontend): 972 files | File types: svg(530) jsx(107) png(80) jpg(65) json(47) js(18) scss(5) | eot(4) ttf(4) woff(4) | Conf files: devcontainer.json(1) github-actions(1) settings.json(1) | package.json(1) project.json(1); ```
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30776702 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30766890 pythongtdpath:30769146 pythonnosmt12:30779714 pythonidxptcf:30772540 pythonnoceb:30776495 cmakesidepanelv2:30779593 ```
twirlse commented 11 months ago

Bump: just opening a largish JSON file is enough to trigger very slow behavior in every subsequent file operation (like git, moves, formats, saves etc.)