Remix.run Logo
loeg 4 days ago

Yeah, with less runtime overhead, so long as you're ok with the ~4kB minimum allocation size.

IshKebab 4 days ago | parent [-]

I think optimal would be just normal vector under 4 kB and then switch to whole pages after that.

Do any vector implementations & allocators actually do this though?

loeg 4 days ago | parent [-]

You lose the in-place resize property if you don't start with an entire page.

As far as "has anyone implemented this?" -- I don't know.

IshKebab 3 days ago | parent [-]

Yeah but it probably makes little difference if your vector is under 4 kB anyway.