Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jan 20, 2025

Fixes #1513

A simple fix which limits the time the ValaSymbolOutline spends on constructing the Sourcelist tree, which is the rate-limiting step (parsing is relatively fast).

Future PR's may improve the performance of tree construction (it is already in a separate thread) so that more symbols can be handled but the issue seems to be mainly with .vapi files which can contain many more symbols than most real world .vala files.

If the time taken exceeds a hard-coded number of msec (currently 1000) a warning is shown instead as shown below. Further information is given in the tooltip of the warning item.

Screenshot from 2025-01-20 18 52 38

@jeremypw jeremypw merged commit b267a50 into master Apr 2, 2025
6 checks passed
@jeremypw jeremypw deleted the jeremypw/vala-symbol-pane/timeout-tree-construction branch April 2, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Large (.vapi) files are extremely slow to load when Vala Symbol pane is active and may cause freeze

3 participants