Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify tag sorting and simplify tag comparison function
Use the same (or compatible) sorting criteria everywhere. Add tm_tag_attr_line_t to sort options so even after merging file tags into workspace tags, the same tags defined at different lines are preserved and not removed as duplicates. Sort type before scope because it's cheaper to compare (string vs int comparison). For some reason, the above changes make the sorting performance worse. Simplify the tag comparison function a bit and reorder the case statements in the switch to match the sort order. This (again not sure why), makes the performance like before.
- Loading branch information
Showing
2 changed files
with
39 additions
and
34 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