1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-18 10:40:57 +03:00

fix(perf): add reserves for usage of vector filled after creation

This commit is contained in:
Leonid Fedorov
2025-10-23 14:49:17 +00:00
committed by Leonid Fedorov
parent 87bdc5fcb0
commit 7d23514315
29 changed files with 220 additions and 14 deletions

View File

@@ -572,6 +572,7 @@ int ColumnBufferCompressed::saveCompressionHeaders()
compress::CompressInterface::setLBIDByIndex(hdrBuf, fColInfo->getLastUpdatedLBID(), 0);
std::vector<uint64_t> ptrs;
ptrs.reserve(fChunkPtrs.size() + 1); // +1 for the final ptr after the loop
for (unsigned i = 0; i < fChunkPtrs.size(); i++)
{