It's neat. I like it!
I edited my comment with some more questions, btw, likely as you were answering - apologies if that ended up confusing.
I edited my comment with some more questions, btw, likely as you were answering - apologies if that ended up confusing.
I need a bit more clarification on your first question. There should be no mutation of the underlying map when it grows — we’re just allocating more room for entries and adjusting the old map’s item “ownership” — moving pointers->items around.