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
@@ -363,6 +363,7 @@ uint8_t WE_DDLCommandProc::writeCreateSyscolumn(ByteStream& bs, std::string& err
|
||||
|
||||
// deserialize column Oid and dictionary oid
|
||||
vector<uint32_t> coloids;
|
||||
coloids.reserve(columnSize);
|
||||
vector<uint32_t> dictoids;
|
||||
|
||||
for (i = 0; i < columnSize; ++i)
|
||||
@@ -372,6 +373,7 @@ uint8_t WE_DDLCommandProc::writeCreateSyscolumn(ByteStream& bs, std::string& err
|
||||
}
|
||||
|
||||
bs >> dictSize;
|
||||
dictoids.reserve(dictSize);
|
||||
|
||||
for (i = 0; i < dictSize; ++i)
|
||||
{
|
||||
@@ -2089,6 +2091,7 @@ uint8_t WE_DDLCommandProc::updateSyscolumnAuto(ByteStream& bs, std::string& err)
|
||||
dctnryStructList.push_back(dctnryStruct);
|
||||
cscColTypeList.push_back(column.colType);
|
||||
|
||||
aColList.reserve(roList.size());
|
||||
for (unsigned int i = 0; i < roList.size(); i++)
|
||||
{
|
||||
aColList.push_back(colTuple);
|
||||
@@ -2276,6 +2279,7 @@ uint8_t WE_DDLCommandProc::updateSyscolumnNextvalCol(ByteStream& bs, std::string
|
||||
dctnryStructList.push_back(dctnryStruct);
|
||||
cscColTypeList.push_back(column.colType);
|
||||
|
||||
aColList.reserve(roList.size());
|
||||
for (unsigned int i = 0; i < roList.size(); i++)
|
||||
{
|
||||
aColList.push_back(colTuple);
|
||||
@@ -2449,6 +2453,7 @@ uint8_t WE_DDLCommandProc::updateSystableEntryForSysColumn(int32_t /*sessionID*/
|
||||
dctnryStructList.push_back(dctnryStruct);
|
||||
cscColTypeList.push_back(column.colType);
|
||||
|
||||
aColList.reserve(roList.size());
|
||||
for (unsigned int i = 0; i < roList.size(); i++)
|
||||
{
|
||||
aColList.push_back(colTuple);
|
||||
|
||||
Reference in New Issue
Block a user