diff options
author | Jacob Segal <jacob.e.segal@gmail.com> | 2018-12-16 20:47:35 -0800 |
---|---|---|
committer | Jacob Segal <jacob.e.segal@gmail.com> | 2019-01-06 00:41:57 -0800 |
commit | cb0a5c7a36122a053c6c86cab145aa4c0336f5ba (patch) | |
tree | fc61bb533d5f629e611fad30bb26d8806f2333cc /doc/ale-thrift.txt | |
parent | 5bbe77101db18968fde65210956e54750d7ff4f5 (diff) | |
download | ale-cb0a5c7a36122a053c6c86cab145aa4c0336f5ba.zip |
Improve perf for compile dbs in large projects
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.
Diffstat (limited to 'doc/ale-thrift.txt')
0 files changed, 0 insertions, 0 deletions