John Levon wrote:
>Are we sure that the slowness is memory moves inNo, we're not.std::vector<Paragraph>::erase and not just in Paragraph::erase(0, par)?
I tend to think it is due to memory fragmentation. Only that can explain the 500Mb RSS, I think. Note that each deletion of an element in the vector implies a full copy of the paragraph and whatever it contains. JMarc