1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

feat(): use CountingAllocator for DISTINCT

This commit is contained in:
drrtuy
2025-02-21 17:02:42 +00:00
parent 7ad4022d96
commit 0bfe10a7d0
3 changed files with 14 additions and 6 deletions

View File

@ -29,8 +29,9 @@
#include <boost/scoped_ptr.hpp>
#include <tr1/unordered_set>
#include <unordered_set>
#include "countingallocator.h"
#include "rowgroup.h"
#include "hasher.h"
#include "stlpoolallocator.h"
@ -455,9 +456,8 @@ class IdbOrderBy : public IdbCompare
bool operator()(const rowgroup::Row::Pointer&, const rowgroup::Row::Pointer&) const;
};
typedef std::tr1::unordered_set<rowgroup::Row::Pointer, Hasher, Eq,
utils::STLPoolAllocator<rowgroup::Row::Pointer> >
DistinctMap_t;
using DistinctMap_t = std::unordered_set<rowgroup::Row::Pointer, Hasher, Eq,
allocators::CountingAllocator<rowgroup::Row::Pointer>>;
boost::scoped_ptr<DistinctMap_t> fDistinctMap;
rowgroup::Row row1, row2; // scratch space for Hasher & Eq