John Levon wrote:
>Are we sure that the slowness is memory moves in
std::vector<Paragraph>::erase and not just in Paragraph::erase(0, par)?
No, we're not.

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

Reply via email to