1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-21 09:20:51 +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

@@ -461,6 +461,7 @@ void BatchLoader::buildBatchDistSeqVector(uint32_t StartPm)
aPms = fPMs;
else
{
aPms.reserve(1 + fPMs.size()); // Reserve for StartPm + all potential PMs
aPms.push_back(StartPm);
uint32_t aLast = fPMs.back();
uint32_t aFirst = fPMs.front();