[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-14 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG735ab46cb414: [clangd] Don't create as much garbage while building Dex index. (authored by sammccall). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79918/ne

[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-14 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev accepted this revision. kbobyrev added a comment. This revision is now accepted and ready to land. LGTM, thank you for the patch! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79918/new/ https://reviews.llvm.org/D79918 _

[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-14 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 263967. sammccall added a comment. Use a faster hash function, which seems to be worth something in the neighbourhood of 4%. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79918/new/ https://reviews.llvm.org/

[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-14 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 263961. sammccall added a comment. Address comments, add more docs. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79918/new/ https://reviews.llvm.org/D79918 Files: clang-tools-extra/clangd/benchmarks/Index

[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-13 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added a comment. Wow, nice work, thank you! Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:51 +public: + // Returns the tokens which are given symbol's characteristics. Currently, the + // generated tokens only contain fuzzy matching trigrams and symbol's sc

[PATCH] D79918: [clangd] Don't create as much garbage while building Dex index.

2020-05-13 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: kbobyrev. Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, mgrang, jkorous, MaskRay, ilya-biryukov. Herald added a project: clang. The Token objects are relatively expensive and we were spending a lot of CPU creatin