If one of the containers needs to grow to accomodate the amount of items in the other container, but the other container is in big mode, We can just swap the buffers over.
This saves copying the items between 2 known heap allocated buffers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is this testable? It should produce fewer element copies, yes? Could you add a test for it?