Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clangd] Avoid reallocating buffers for each message read:
- reuse std::string we read messages into - when reading line-wise, use SmallVector<128> and read in chunks of 128 (this affects headers, which are short, and tests, which don't matter) Differential Revision: https://reviews.llvm.org/D93653
- Loading branch information
1 parent
66d5994
commit 466acd6
Showing
1 changed file
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters