You've already forked mariadb-columnstore-engine
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:
committed by
Leonid Fedorov
parent
87bdc5fcb0
commit
7d23514315
@@ -1234,6 +1234,8 @@ class RowGroupStorage
|
||||
void getTmpFilePrefixes(std::vector<std::string>& prefixes) const
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
// Reserve space for 2 prefixes
|
||||
prefixes.reserve(prefixes.size() + 2);
|
||||
snprintf(buf, sizeof(buf), "Agg-p%u-t%p-rg", getpid(), fUniqId);
|
||||
prefixes.emplace_back(buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user