Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate calls of slow tm_tags_extract() on big arrays
Do the same with struct/class/union... member tags as we do with typenames - extract them from the edited file and merge them with the array containing all of them so while editing, there should be no slowdowns because one file usually doesn't contain so many tags. This eliminates about 2s freeze when typing "." on a linux kernel project with 2300000 tags. Extract typename and member tags also for global tags in case someone creates a giant tags file - this needs to be done just once when loading the tag files. All the remaining tm_tags_extract() in Geany are called on file tag array only so there shouldn't be any performance problems.
- Loading branch information
Showing
3 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters