mirror of
https://github.com/dense-analysis/ale
synced 2024-12-24 15:13:02 +00:00
cb0a5c7a36
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. |
||
---|---|---|
.. | ||
test.sh |