[all-commits] [llvm/llvm-project] 466acd: [clangd] Avoid reallocating buffers for each messa...
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Jan 13 08:41:08 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 466acd694861138997d668a3f9cb29aa87bd316e
https://github.com/llvm/llvm-project/commit/466acd694861138997d668a3f9cb29aa87bd316e
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2021-01-13 (Wed, 13 Jan 2021)
Changed paths:
M clang-tools-extra/clangd/JSONTransport.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list