question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fantastic extension needs performance optimization

See original GitHub issue

Issue Type: Performance Issue

Love this extension. Helps me visualize my position in code, especially in deeply nested widgets. But it’s lagging even on my high end device. Even at N6 it’s barely usable. Also I suspect it might have a memory leak, as it keeps getting worse and gets better after a a reload.

Extension version: 1.2.16 VS Code version: Code - Insiders 1.62.0-insider (4bbec283c36a51cf80f9b77c7a81c140a76a363b, 2021-11-02T08:19:40.220Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No

System Info
Item Value
CPUs AMD Ryzen 9 4900H with Radeon Graphics (16 x 3294)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.42GB (12.52GB free)
Process Argv –crash-reporter-id 76213229-3f45-4857-b470-1778a95699b5
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   137	  3956	code-insiders main
    0	    24	  9636	   crashpad-handler
    4	   217	 13612	   window (series_list_sort_section.dart - banagher - Visual Studio Code - Insiders)
   10	   256	 11588	     extensionHost
    0	     5	 19536	       C:\WINDOWS\system32\cmd.exe /d /s /c ""C:\flutter\bin\cache\dart-sdk\bin\dart.exe" "C:\flutter\bin\cache\dart-sdk\bin\snapshots\analysis_server.dart.snapshot" "--lsp" "--client-id=VS-Code" "--client-version=3.28.0""
    0	    11	  3876	         console-window-host (Windows internal process)
   12	    89	 25268	         "C:\flutter\bin\cache\dart-sdk\bin\dart.exe"  "C:\flutter\bin\cache\dart-sdk\bin\snapshots\analysis_server.dart.snapshot" "--lsp" "--client-id=VS-Code" "--client-version=3.28.0"
    0	     6	 29944	       C:\WINDOWS\system32\cmd.exe /d /s /c ""C:\flutter\bin\flutter.bat" "daemon""
    0	    11	 30516	         console-window-host (Windows internal process)
    3	   123	 30568	         "C:\flutter\bin\cache\dart-sdk\bin\dart.exe"  --disable-dart-dev --packages="C:\flutter\packages\flutter_tools\.packages"  "C:\flutter\bin\cache\flutter_tools.snapshot" "daemon" 
    0	     5	 30804	       C:\WINDOWS\system32\cmd.exe /d /s /c ""c:\Users\Agone\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar.unpacked\vscode-ripgrep\bin\rg.exe" --no-messages --vimgrep -H --column --line-number --color never --max-columns=1000 --no-config  -f "c:\Users\Agone\AppData\Roaming\Code - Insiders\User\workspaceStorage\33938f9b144b76f96ab13177c795021d\Gruntfuggly.todo-tree\2hbwjcffks.txt" -g "!**/node_modules" -g "!**/banagher/windows/**/*" -g "!c:\Users\Agone\Source\work\comikey\banagher\lib\helpers\platform.dart" "c:\Users\Agone\Source\work\comikey\banagher""
    0	    11	 30204	         console-window-host (Windows internal process)
    0	     9	 32232	         "c:\Users\Agone\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar.unpacked\vscode-ripgrep\bin\rg.exe"  --no-messages --vimgrep -H --column --line-number --color never --max-columns=1000 --no-config  -f "c:\Users\Agone\AppData\Roaming\Code - Insiders\User\workspaceStorage\33938f9b144b76f96ab13177c795021d\Gruntfuggly.todo-tree\2hbwjcffks.txt" -g "!**/node_modules" -g "!**/banagher/windows/**/*" -g "!c:\Users\Agone\Source\work\comikey\banagher\lib\helpers\platform.dart" "c:\Users\Agone\Source\work\comikey\banagher"
    0	     6	 32092	       "C:\Program Files\Git\cmd\git.exe" for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track) refs/heads/dev refs/remotes/dev
    0	    11	 28588	         console-window-host (Windows internal process)
    0	     0	 30500	         
    1	   469	 15708	   gpu-process
    0	    39	 25308	   utility
    7	   139	 30700	   shared-process
    0	    68	 13304	     ptyHost
    0	     7	 14368	       console-window-host (Windows internal process)
    0	    51	 26732	       "C:\Program Files\PowerShell\7\pwsh.exe"
    0	    88	 30924	     watcherServiceParcelSharedProcess
    0	    92	 31528	   window (Issue Reporter)
    0	     7	 32724	   "C:\Program Files\Google\Drive File Stream\52.0.6.0\crashpad_handler.exe" --database=C:\Users\Agone\AppData\Local\Google\DriveFS\Crashpad --url=https://clients2.google.com/cr/report "--annotation=application=Code - Insiders.exe" --annotation=prod=DriveFS --annotation=ver=52.0.6.0 --initial-client-data=0x15b0,0x15a4,0x1574,0x1594,0x1558,0x7ffce569f820,0x7ffce569f830,0x7ffce569f840
Workspace Info
|  Window (series_list_sort_section.dart - banagher - Visual Studio Code - Insiders)
|    Folder (banagher): 10689 files
|      File types: xml(2133) json(1217) flat(1056) svg(308) class(294)
|                  jar(219) png(178) dart(156) txt(126) len(123)
|      Conf files: cmake(12) sln(6) github-actions(1) launch.json(1)
|                  tasks.json(1)
|      Launch Configs: dart(4);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
leodevbrocommented, Nov 6, 2021

Good news, I discovered a great optimization trick in VSCode API. Basically, I can reuse most (like 90%) of the line blocks for rendering (In version 1.2.16, new HTML div is being created for each line, so it’s very slow), so in new version, only about 10% of the HTML divs will stress the CPU. Already tested it successfully. I’m not totally sure, but I am like 95% sure that the final code will be much faster. I’m going to release the new version soon, maybe tomorrow, or maybe the day after tomorrow.

1reaction
leodevbrocommented, Nov 12, 2021

Very cool, for me, the startup time was 921ms, but I guess it’s not a big deal even if it is 3 seconds or more. The big deal is how it performs during working process. I’m glad it performs better in your environment. I suggest to test it for several days more, and if we notice no degradation of speed, then we can close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Magento Speed Optimization Extension or Service: What to ...
Magento speed optimization service checks for any extensions that are restraining the store and terminates them to optimize the Magento core.
Read more >
Tips and Tricks For Magento Performance Optimization - Aitoc
Practical recommendations for analyzing store performance, and tips on how to make your Magento store faster.
Read more >
10 Tips to Speed up Joomla Performance - KeyCDN
Check out our tips on how to speed up Joomla performance. ... Here are a few additional extensions that also deal with image...
Read more >
JCH Optimize, by Samuel Marshall - Joomla Extension Directory
JCH Optimize improves the performance of your website by performing several optimizations to the HTML page aimed at improving the Web Vitals ...
Read more >
Optimize Your Chrome Browsing Experience With These 13 ...
One warning before you dive in and grab every extension in this post: installing too many extensions can negatively impact browser performance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found