diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-07-14 10:45:06 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-07-14 17:00:41 +0200 |
commit | ff616f74c3b45e0890b53d92fcfc6a9d18f4bfdd (patch) | |
tree | 2e9e7496cc3d4f274fae21d84d90b7bf8bda69b1 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | e6c016420c796ac038b15e1ba0557947bf11d507 (diff) | |
download | llvm-ff616f74c3b45e0890b53d92fcfc6a9d18f4bfdd.zip llvm-ff616f74c3b45e0890b53d92fcfc6a9d18f4bfdd.tar.gz llvm-ff616f74c3b45e0890b53d92fcfc6a9d18f4bfdd.tar.bz2 |
[clangd] Cache config files for 5 seconds, without revalidating with stat.
Summary:
This is motivated by:
- code completion: nice to do no i/o on the request path
- background index: deciding whether to enqueue each file would stat the config
file thousands of times in quick succession.
Currently it's applied uniformly to all requests though.
This gives up on performing stat() outside the lock, all this achieves is
letting multiple threads stat concurrently (and thus finish without contention
for nonexistent files).
The ability to finish without IO (just mutex lock + integer check) should
outweigh this, and is less sensitive to platform IO characteristics.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D83755
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions