diff options
| author | Stefan Boberg <[email protected]> | 2024-12-02 14:26:11 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-12-02 14:26:11 +0100 |
| commit | 9b2fb8069869ec5cea32816a3589d9842595ffea (patch) | |
| tree | 436a21daef8798377f23765e3f022c92f90ba5ac /src/zencore/compactbinarybuilder.cpp | |
| parent | validate that root path exists for workspace before adding it (#250) (diff) | |
| download | zen-9b2fb8069869ec5cea32816a3589d9842595ffea.tar.xz zen-9b2fb8069869ec5cea32816a3589d9842595ffea.zip | |
reduce memory churn (#248)
* eliminated allocation in SetCurrentThreadName
* reduced memory allocator activity in cache RPC response building
* reduced allocations in compact binary building
Diffstat (limited to 'src/zencore/compactbinarybuilder.cpp')
| -rw-r--r-- | src/zencore/compactbinarybuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zencore/compactbinarybuilder.cpp b/src/zencore/compactbinarybuilder.cpp index 3331291ce..a60de023d 100644 --- a/src/zencore/compactbinarybuilder.cpp +++ b/src/zencore/compactbinarybuilder.cpp @@ -93,6 +93,7 @@ AppendCompactBinary(const CbFieldView& Value, std::vector<uint8_t>& OutData) CbWriter::CbWriter() { + States.reserve(4); States.emplace_back(); } |