You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-05 04:50:35 +03:00
fix(perf): add reserves for usage of vector filled after creation
This commit is contained in:
committed by
Leonid Fedorov
parent
87bdc5fcb0
commit
7d23514315
@@ -502,6 +502,7 @@ uint8_t WE_DMLCommandProc::processSingleInsert(messageqcpp::ByteStream& bs, std:
|
||||
|
||||
// First gather HWM BRM information for all columns
|
||||
std::vector<int> colWidths;
|
||||
colWidths.reserve(ridList.size());
|
||||
|
||||
for (unsigned i = 0; i < ridList.size(); i++)
|
||||
{
|
||||
@@ -609,6 +610,7 @@ uint8_t WE_DMLCommandProc::processSingleInsert(messageqcpp::ByteStream& bs, std:
|
||||
|
||||
std::map<uint32_t, uint32_t> oids;
|
||||
std::vector<BRM::OID_t> oidsToFlush;
|
||||
oidsToFlush.reserve(colStructs.size() + dctnryStructList.size());
|
||||
|
||||
for (unsigned i = 0; i < colStructs.size(); i++)
|
||||
{
|
||||
@@ -950,6 +952,7 @@ uint8_t WE_DMLCommandProc::processBatchInsert(messageqcpp::ByteStream& bs, std::
|
||||
|
||||
// First gather HWM BRM information for all columns
|
||||
std::vector<int> colWidths;
|
||||
colWidths.reserve(ridList.size() + 1); // +1 for potential AUX column
|
||||
for (unsigned i = 0; i < ridList.size(); i++)
|
||||
{
|
||||
rc = BRMWrapper::getInstance()->getDbRootHWMInfo(ridList[i].objnum, dbRootHWMInfoColVec[i]);
|
||||
|
||||
Reference in New Issue
Block a user