Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.4k stars 134 forks source link

Performance issues #776

Open gmccullo opened 11 months ago

gmccullo commented 11 months ago

Type: Bug

I have been having significant performance problems in the editor. I ran bisect and it identified this extension as the problematic one.

Extension version: 0.0.226 VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 x 2296)| |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)|13.95GB (5.42GB free)| |Process Argv|--crash-reporter-id f4d11365-b8df-4076-a7d2-5647e124f85c| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30789497 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 hideindicator:30785051 pythongtdpath:30769146 bgfeh915:30780428 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnocebcf:30776496 h7j2d465:30786200 dsvsc013:30789517 ```
FederAndInk commented 11 months ago

Running the vscode profiler (> Developer: Show Running Extensions) also shows this extension has issues: image

FederAndInk commented 11 months ago

ok, also linking #733 #495 #478

onimitch commented 11 months ago

I've noticed this a lot recently too. The startup time for the extension is 8842ms and it's causing intellisense to take a long time to appear. I really value this extension so I don't really want to disable it :(

NKahrl commented 10 months ago

it sadly makes intellisense unusable

redactedscribe commented 9 months ago

Changing "todo-tree.tree.scanMode": "workspace" to some other value might be the temporary solution you need (assuming it's the same bug I've encountered).

DelovayaKolbasa commented 9 months ago

Gentlemen, I seem to have the same problem, but would like to clarify. When I switch the active tab from one file to another (php-file, more than 1 Mb), at each switch the plugin recalculates something again (I see the loaded CPU), and the highlighting in the editor appears after 5-7 seconds. I don't make any changes in the files, just switch tabs. During this time it is impossible to use Intelephense.

Can you tell me if this is related to the same bug, or is it a different bug and it shouldn't happen when switching between tabs?