summaryrefslogtreecommitdiff
path: root/test/compile_database_perf/test.sh
AgeCommit message (Collapse)Author
2021-03-20#3633 - Put all dummy test files in test/test-filesw0rp
2019-01-06Improve perf for compile dbs in large projectsJacob Segal
When using a compilation database (compile_commands.json) in very large projects, significant delays would occur when changing files -- particularly those that happened to be far down the db. Rather than iterating over the whole list every time, we now build up a lookup table based on the tail of the filename (and tail of the directory for widening searches) and iterate over the much smaller list of compile commands for files with the given name. Test metrics (from compile_database_perf/test.sh) show a 90% performance improvement -- from 25 seconds to 2.5 seconds per run.