Add linear tag remove path for cases where not many files are open
commite26c9ba2ced88d5bcf1804e228918b63cae76b20
authorJiří Techet <techet@gmail.com>
Sun, 14 Jun 2015 15:52:24 +0000 (14 17:52 +0200)
committerJiří Techet <techet@gmail.com>
Sun, 14 Jun 2015 15:52:24 +0000 (14 17:52 +0200)
tree733e5c9ce1455b0957340407e38c601d26d161d9
parent935c389f285e52fb690dc6d743c90ad3f26d0b49
Add linear tag remove path for cases where not many files are open

When tested with 200000 LOC python file (created by making many copies
of scripts/create_py_tags.py), the tm_tags_remove_file_tags() function
takes about 50% of the CPU time when only this file is open. After adding
the linear path to tm_tags_remove_file_tags() it takes just about 2%. See
the comment in the patch for more details.
tagmanager/src/tm_tag.c