Re: pb_ds gp_hash_table resize strategy

2024-06-21 Thread Jonathan Wakely via Gcc
On Fri, 21 Jun 2024, 02:28 CH HC via Gcc, wrote: > Hi there, > In libstdc++/ext/pb_ds , I noticed that the (automatic) resize function > for gp_hash_table does copy-and-destruct operations on old key-value pair > (from the line resize_no_store_hash_fn_imps.hpp:58). Meanwhile, > cc_hash_table simp

pb_ds gp_hash_table resize strategy

2024-06-20 Thread CH HC via Gcc
Hi there, In libstdc++/ext/pb_ds , I noticed that the (automatic) resize function for gp_hash_table does copy-and-destruct operations on old key-value pair (from the line resize_no_store_hash_fn_imps.hpp:58). Meanwhile, cc_hash_table simply moves the old pair as expected. So for gp_hash_table, t