Bag<> is not space efficient if # of entries become so many.
Why? Isn't it just a linked list?
(In reply to Saam Barati from comment #1) > Why? Isn't it just a linked list? Bag adds a pointer to make them a linked list. On the other hand, SegmentedVector does not. It allocates 8 (by default) elements in a batch manner.