You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MarkerService and ProblemsView do not scale well and block UI thread #11976
F5 to compile and launch the extension under the debugger
In the debuggee process, select View->Problems to display the Problems pane.
In the debuggee process, select View->Command Palette... and execute the Populate Diagnostics command.
At this point, the VS Code debuggee window will stop responding as it populates a single diagnostic for 2000 files. This is very similar to the diagnostics produced for a medium- to large-sized C# solution (say, one generated by Unity) where there are a couple thousand files and each has a single "remove unnecessary using directives" diagnostic.
Expected result:
Populating diagnostics should not scale exponentially by the number of files.
Calling DiagnosticCollection.set(...) should periodically free up the UI thread while processing.
The problem is that we call changeOne per uri+owner combination which leads to many events. Processing those events (problems view) takes a long time. We should not fire so many events...
Sandeep Somavarapu (@sandy081) I have pushed changes to send all events at once and to make reading of markers a little faster. that improves the situation a tiny bit. as discussed the culprit is the problems view. pls continue from here
I added another fix/improvement while applying filters.
Using Tree.expand on each item or Tree.expandAll is not making any difference.
Will discuss with João Moreno (@joaomoreno) and see if I can improve this.
Otherwise Closing this since we improved performance drastically.
changed the title [-]DiagnosticCollection does not scale well and blocks UI thread[/-][+]MarkerService and ProblemsView do not scale well and block UI thread[/+]on Sep 28, 2016
Activity
jrieken commentedon Sep 19, 2016
The problem is that we call
changeOneper uri+owner combination which leads to many events. Processing those events (problems view) takes a long time. We should not fire so many events...CPU-20160919T115033.cpuprofile.zip
jrieken commentedon Sep 19, 2016
We have found a couple of issues
debounce onMarkerChanged-event for better perf, #11976
make MarkerService#read a litte faster, #11976
jrieken commentedon Sep 19, 2016
Sandeep Somavarapu (@sandy081) I have pushed changes to send all events at once and to make reading of markers a little faster. that improves the situation a tiny bit. as discussed the culprit is the problems view. pls continue from here
sandy081 commentedon Sep 19, 2016
Thanks Johannes Rieken (@jrieken) for the changes. I will do the improvement is problems view as discussed.
4 remaining items
jrieken commentedon Sep 21, 2016
reopening for me to further improve
MarkerService#read. That 1 second must go ;-)performance fix: code optimization and do sorting while rendering tree
MarkersModel: bulk update/refresh of resources
jrieken commentedon Sep 22, 2016
🐎
MarkerService#readfrom 1000ms down to 2.5ms. Slightly embarrassing it wasn't like this to begin with...jrieken commentedon Sep 22, 2016
Sandeep Somavarapu (@sandy081) The last big chunk is
Tree#expandwhich you might wanna consult with João Moreno (@joaomoreno) if it can be improved.Problems: Delay applying filter. #11976
sandy081 commentedon Sep 28, 2016
I added another fix/improvement while applying filters.
Using Tree.expand on each item or Tree.expandAll is not making any difference.
Will discuss with João Moreno (@joaomoreno) and see if I can improve this.
Otherwise Closing this since we improved performance drastically.
[-]DiagnosticCollection does not scale well and blocks UI thread[/-][+]MarkerService and ProblemsView do not scale well and block UI thread[/+]