You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-505 Performance improvements to ExeMgr
This fix improves the performance of ExeMgr by doing the following: * Significantly reduces the amount of time the xml configuration is scanned * Uses a much faster way to determine the CPU core count * Reduces the amount of times certain allocations are executed * Rowgroup pre-allocates vectors for 1024 rows This improves performance for the first query of a connection and the performance for smaller result sets. It may well improve performance in other areas too.
This commit is contained in:
@@ -800,7 +800,14 @@ int64_t Row::getSignedNullValue(uint32_t colIndex) const
|
||||
|
||||
RowGroup::RowGroup() : columnCount(0), data(NULL), rgData(NULL), strings(NULL),
|
||||
useStringTable(true), hasLongStringField(false), sTableThreshold(20)
|
||||
{ }
|
||||
{
|
||||
oldOffsets.reserve(1024);
|
||||
oids.reserve(1024);
|
||||
keys.reserve(1024);
|
||||
types.reserve(1024);
|
||||
scale.reserve(1024);
|
||||
precision.reserve(1024);
|
||||
}
|
||||
|
||||
RowGroup::RowGroup(uint32_t colCount,
|
||||
const vector<uint32_t> &positions,
|
||||
|
Reference in New Issue
Block a user