mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-15 23:12:45 +08:00
![]() When constructing the tag tree it is often necessary to look up tags with a certain name and other attributes at the current depth. This was previously done with the filter() function on the list of all the relevant tags. However, this filtering is very slow. This commit changes the FileInfo and TagInfo objects to save added tags in a dictionary indexed by the name of the tag in addition to the list (which is still maintained in parallel since it is necessary for things like sorting). This significatly speeds up tag lookup since most tags have unique names. |
||
---|---|---|
.. | ||
tagbar.vim |