You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
fix(perf,allocator): test build with reduced CountingAllocator parameter values.
This commit is contained in:
@@ -85,8 +85,9 @@ struct TAEq
|
||||
// TODO: Generalize these and put them back in utils/common/hasher.h
|
||||
// using TNSDistinctMap_t = std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq,
|
||||
// allocators::CountingAllocator<rowgroup::Row::Pointer> >;
|
||||
using TNSDistinctMap_t =
|
||||
std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq, STLPoolAllocator<rowgroup::Row::Pointer> >;
|
||||
using TNSDistinctMap_t = std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq>;
|
||||
// using TNSDistinctMap_t =
|
||||
// std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq, STLPoolAllocator<rowgroup::Row::Pointer> >;
|
||||
}; // namespace
|
||||
|
||||
inline uint64_t TAHasher::operator()(const Row::Pointer& p) const
|
||||
@@ -462,8 +463,10 @@ void TupleAnnexStep::executeNoOrderByWithDistinct()
|
||||
// auto alloc = fRm->getAllocator<rowgroup::Row::Pointer>();
|
||||
// std::unique_ptr<TNSDistinctMap_t> distinctMap(new TNSDistinctMap_t(10, TAHasher(this), TAEq(this),
|
||||
// alloc));
|
||||
std::unique_ptr<TNSDistinctMap_t> distinctMap(
|
||||
new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), STLPoolAllocator<rowgroup::Row::Pointer>(fRm)));
|
||||
// WIP
|
||||
// std::unique_ptr<TNSDistinctMap_t> distinctMap(
|
||||
// new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), STLPoolAllocator<rowgroup::Row::Pointer>(fRm)));
|
||||
std::unique_ptr<TNSDistinctMap_t> distinctMap(new TNSDistinctMap_t(10, TAHasher(this), TAEq(this)));
|
||||
|
||||
rgDataOut.reinit(fRowGroupOut);
|
||||
fRowGroupOut.setData(&rgDataOut);
|
||||
@@ -724,8 +727,9 @@ void TupleAnnexStep::finalizeParallelOrderByDistinct()
|
||||
ordering::SortingPQ finalPQ(rowgroup::rgCommonSize, fRm->getAllocator<ordering::OrderByRow>());
|
||||
// ordering::SortingPQ finalPQ(rowgroup::rgCommonSize);
|
||||
// auto allocDistinct = fRm->getAllocator<rowgroup::Row::Pointer>();
|
||||
std::unique_ptr<TNSDistinctMap_t> distinctMap(
|
||||
new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), STLPoolAllocator<rowgroup::Row::Pointer>(fRm)));
|
||||
// std::unique_ptr<TNSDistinctMap_t> distinctMap(
|
||||
// new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), STLPoolAllocator<rowgroup::Row::Pointer>(fRm)));
|
||||
std::unique_ptr<TNSDistinctMap_t> distinctMap(new TNSDistinctMap_t(10, TAHasher(this), TAEq(this)));
|
||||
fRowGroupIn.initRow(&row1);
|
||||
fRowGroupIn.initRow(&row2);
|
||||
|
||||
|
Reference in New Issue
Block a user