[PATCH] D106432: [clangd] Cleanup FuzzyFindRequest serialization and dex benchmark
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 21 05:51:46 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG907efdf95da5: [clangd] Cleanup FuzzyFindRequest serialization and dex benchmark (authored by kbobyrev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106432/new/
https://reviews.llvm.org/D106432
Files:
clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp
clang-tools-extra/clangd/index/Index.cpp
clang-tools-extra/clangd/index/dex/Iterator.cpp
Index: clang-tools-extra/clangd/index/dex/Iterator.cpp
===================================================================
--- clang-tools-extra/clangd/index/dex/Iterator.cpp
+++ clang-tools-extra/clangd/index/dex/Iterator.cpp
@@ -207,7 +207,6 @@
return OS;
}
- // FIXME(kbobyrev): Would storing Children in min-heap be faster?
std::vector<std::unique_ptr<Iterator>> Children;
friend Corpus; // For optimizations.
};
Index: clang-tools-extra/clangd/index/Index.cpp
===================================================================
--- clang-tools-extra/clangd/index/Index.cpp
+++ clang-tools-extra/clangd/index/Index.cpp
@@ -49,12 +49,12 @@
llvm::json::Value toJSON(const FuzzyFindRequest &Request) {
return llvm::json::Object{
{"Query", Request.Query},
- {"Scopes", llvm::json::Array{Request.Scopes}},
+ {"Scopes", Request.Scopes},
{"AnyScope", Request.AnyScope},
{"Limit", Request.Limit},
{"RestrictForCodeCompletion", Request.RestrictForCodeCompletion},
- {"ProximityPaths", llvm::json::Array{Request.ProximityPaths}},
- {"PreferredTypes", llvm::json::Array{Request.PreferredTypes}},
+ {"ProximityPaths", Request.ProximityPaths},
+ {"PreferredTypes", Request.PreferredTypes},
};
}
Index: clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp
===================================================================
--- clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp
+++ clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp
@@ -106,7 +106,7 @@
int main(int argc, char *argv[]) {
if (argc < 3) {
llvm::errs() << "Usage: " << argv[0]
- << " global-symbol-index.yaml requests.json "
+ << " global-symbol-index.dex requests.json "
"BENCHMARK_OPTIONS...\n";
return -1;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106432.360410.patch
Type: text/x-patch
Size: 1832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210721/76c11d07/attachment.bin>
More information about the cfe-commits
mailing list