[libcxx-commits] [libcxx] [libc++] Optimize __hash_table copy constructors and assignment (PR #151951)
Alexander Kornienko via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 25 08:57:34 PDT 2025
alexfh wrote:
@philnik777 landed fixes in https://github.com/llvm/llvm-project/pull/160043 and https://github.com/llvm/llvm-project/pull/160466. It would have been nice to mention this here though.
And there's an open question whether hash_map and hash_set also need similar fixes. They can't contain multiple identical keys, but IIUC they are repeating all the insertions done in the base class' constructor in their own constructor, effectively being ~2x slower. So something like https://github.com/llvm/llvm-project/pull/160525 seems to be needed.
https://github.com/llvm/llvm-project/pull/151951
More information about the libcxx-commits
mailing list