From dd6e0439f9e0ec9c6531eeab59a12e60e3d936ea Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 27 Oct 2022 18:42:47 +0200 Subject: [PATCH] suppressed call to key_from (experiment) --- include/boost/unordered/detail/foa.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 5f731494..ce55da30 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1559,7 +1559,8 @@ private: prefetch_elements(p); do{ auto n=unchecked_countr_zero(mask); - if(BOOST_LIKELY(bool(pred()(x,key_from(p[n]))))){ + //if(BOOST_LIKELY(bool(pred()(x,key_from(p[n]))))){ + if(BOOST_LIKELY(bool(pred()(x,p[n].first)))){ return {pg,n,p+n}; } mask&=mask-1;