diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-12-01 12:48:41 +0100 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-12-09 17:40:12 +0100 |
commit | 634a377bd8cbaa515a58295cfd85dcb6a21381c1 (patch) | |
tree | 6223a869416edd39d390a15baf6e99bfdef0ee8e /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
parent | 717b0da7a6ef0a8a03d7296324f76132118fcf54 (diff) | |
download | llvm-634a377bd8cbaa515a58295cfd85dcb6a21381c1.zip llvm-634a377bd8cbaa515a58295cfd85dcb6a21381c1.tar.gz llvm-634a377bd8cbaa515a58295cfd85dcb6a21381c1.tar.bz2 |
[clangd] Extract per-dir CDB cache to its own threadsafe class. NFC
This is a step towards making compile_commands.json reloadable.
The idea is:
- in addition to rare CDB loads we're soon going to have somewhat-rare CDB
reloads and fairly-common stat() of files to validate the CDB
- so stop doing all our work under a big global lock, instead using it to
acquire per-directory structures with their own locks
- each directory can be refreshed from disk every N seconds, like filecache
- avoid locking these at all in the most common case: directory has no CDB
Differential Revision: https://reviews.llvm.org/D92381
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions