]> granicus.if.org Git - clang/commit
Parse compile commands lazily in InterpolatingCompilationDatabase
authorIlya Biryukov <ibiryukov@google.com>
Tue, 28 Aug 2018 16:15:56 +0000 (16:15 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 28 Aug 2018 16:15:56 +0000 (16:15 +0000)
commitb55f3a17cacabf8c785603fceadd18d3c305cd31
treed83f6e403691b724af1db819567c6f96247af170
parentd0fc1788123de9844c8088b977cd142021cea1f2
Parse compile commands lazily in InterpolatingCompilationDatabase

Summary:
This greatly reduces the time to read 'compile_commands.json'.
For Chromium on my machine it's now 0.7 seconds vs 30 seconds before the
change.

Reviewers: sammccall, jfb

Reviewed By: sammccall

Subscribers: mgrang, jfb, cfe-commits

Differential Revision: https://reviews.llvm.org/D51314

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340838 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/InterpolatingCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp