[llvm] [ADT] ImutAVLFactory: avoid overhead of vector for freelist (PR #196534)

Christoph Cullmann via llvm-commits llvm-commits at lists.llvm.org
Sat May 9 02:07:22 PDT 2026


================
@@ -368,7 +369,9 @@ class ImutAVLFactory {
   CacheTy Cache;
   uintptr_t Allocator;
   std::vector<TreeTy*> createdNodes;
----------------
christoph-cullmann wrote:

Reading the code, that vector is just used to recover nodes created during one insert/remove with the potential balances.

It will always be very small by design of the trees.

If you prefer a small vector there, I can alter that.

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


More information about the llvm-commits mailing list