[libcxx-commits] [libcxx] [libc++] Optimize copy construction and assignment of __tree (PR #151304)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 30 07:36:26 PDT 2025


================
@@ -172,6 +172,21 @@ void associative_container_benchmarks(std::string container) {
     }
   });
 
+  bench("operator=(const&) (into populated Container)", [=](auto& st) {
----------------
ldionne wrote:

I would suggest adding coverage for assigning into a map that has something like half the nodes of the incoming map. That would help cover the case of assigning between trees that have a different structure.

https://github.com/llvm/llvm-project/pull/151304


More information about the libcxx-commits mailing list