From d4c01272cf568f8e4d3c4e19495db1e64827a8be Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Fri, 8 Apr 2022 18:05:24 +0200 Subject: hv.* - disable unshared keys except when requested This disables the new unshared hash key logic by default. People who wish to try it out can enable it at build time with -DPERL_USE_UNSHARED_KEYS_IN_LARGE_HASHES in the configure process. --- hv.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hv.h') diff --git a/hv.h b/hv.h index bd81e5750c..2c5e796d9b 100644 --- a/hv.h +++ b/hv.h @@ -28,6 +28,13 @@ # define PERL_HASH_ITER_BUCKET(iter) (((iter)->xhv_riter) ^ ((iter)->xhv_rand)) #endif +#ifdef PERL_USE_UNSHARED_KEYS_IN_LARGE_HASHES +#define LARGE_HASH_HEURISTIC(hv,new_max) S_large_hash_heuristic(aTHX_ (hv), (new_max)) +#else +#define LARGE_HASH_HEURISTIC(hv,new_max) 0 +#endif + + /* entry in hash value chain */ struct he { /* Keep hent_next first in this structure, because sv_free_arenas take -- cgit v1.2.1