From 8d3c924724c84e462694ce57b7646d89f7d745cc Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 2 Jan 2024 12:01:17 +0100 Subject: [PATCH] increased gc frequency --- include/boost/unordered/detail/foa/concurrent_table.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index fe80a381..5ed33cb1 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -571,6 +571,7 @@ public: } std::cout + <<"version: 2024/01/02 11:57; " <<"capacity: "<arrays.elements()+pos*N+n; this->construct_element(p,std::forward(args)...); pg->set(n,hash); + for(prober pb2(pos0);pb2.get()!=pos; + pb2.next(this->arrays.groups_size_mask)){ + this->arrays.groups()[pb2.get()].mark_overflow(hash); + } } rslot.commit(); auto& v=local_garbage_vector(); @@ -1677,7 +1682,7 @@ private: return 1; } if(!pbn--)return -1; - pg->mark_overflow(hash); + //pg->mark_overflow(hash); } } } @@ -1999,7 +2004,7 @@ private: struct garbage_vector { static constexpr std::size_t N=256; - static constexpr std::size_t min_for_epoch_bump=64; + static constexpr std::size_t min_for_epoch_bump=16; using ssize_t=std::make_signed::type;