This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3a0a2a6347f5: [clangd] Implement hot index reloading for
clangd-index-server (authored by kbobyrev).
Repository:
rG LLVM Github Monorepo
CHANGES
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
Thanks, LGTM!
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:342
+ HotReloadThread.join();
}
kbobyrev wrote:
> kadircet wrote:
> >
kbobyrev added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:234
+ LastStatus.getLastModificationTime(),
Status->getLastModificationTime());
+ std::unique_ptr NewIndex = loadIndex(IndexPath);
+ if (!NewIndex) {
kadi
kbobyrev updated this revision to Diff 292144.
kbobyrev marked 2 inline comments as done.
kbobyrev added a comment.
Save last status to prevent redundant updates.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87
kadircet added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:234
+ LastStatus.getLastModificationTime(),
Status->getLastModificationTime());
+ std::unique_ptr NewIndex = loadIndex(IndexPath);
+ if (!NewIndex) {
kbob
kbobyrev updated this revision to Diff 292131.
kbobyrev added a comment.
Update comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
Files:
clang-tools-extra/clangd/index/remote/server/Server.cpp
Ind
kbobyrev added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:234
+ LastStatus.getLastModificationTime(),
Status->getLastModificationTime());
+ std::unique_ptr NewIndex = loadIndex(IndexPath);
+ if (!NewIndex) {
kadi
kbobyrev updated this revision to Diff 292130.
kbobyrev marked 5 inline comments as done.
kbobyrev added a comment.
Address another round of comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
Files:
kadircet added a comment.
oops, looks like i forgot to hit submit in the morning..
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:228
+ auto Status = FS->status(IndexPath);
+ if (!Status || Status->equivalent(LastStatus))
+return;
i b
kbobyrev updated this revision to Diff 291861.
kbobyrev marked 5 inline comments as done.
kbobyrev added a comment.
Address a round of comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
Files:
clan
kadircet added a comment.
Thanks! Mostly looks good, just couple of nits.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:223
+// whenever they become available.
+void hotReload(clangd::SwapIndex *Index, llvm::StringRef IndexPath,
+ llvm::vfs::
kbobyrev updated this revision to Diff 291521.
kbobyrev marked 2 inline comments as done.
kbobyrev added a comment.
Address remaining comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
Files:
clang
kadircet added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:226
+ llvm::sys::TimePoint<> LastModificationTime =
+ std::chrono::system_clock::now();
+ for (;; std::this_thread::sleep_for(std::chrono::seconds(90))) {
k
kbobyrev added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:226
+ llvm::sys::TimePoint<> LastModificationTime =
+ std::chrono::system_clock::now();
+ for (;; std::this_thread::sleep_for(std::chrono::seconds(90))) {
k
kbobyrev updated this revision to Diff 291508.
kbobyrev marked 7 inline comments as done.
kbobyrev added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
Files:
clang-to
kadircet added inline comments.
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:71
std::unique_ptr openIndex(llvm::StringRef Index) {
return loadIndex(Index, /*UseIndex=*/true);
why do we have this extra indirection?
C
kbobyrev created this revision.
kbobyrev added a reviewer: kadircet.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous.
Herald added a project: clang.
kbobyrev requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
This patch adds a mechanism to load
17 matches
Mail list logo