Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit time vala symbol pane takes to parse and display symbols #1515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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
1 participant