Caolan McNamara wrote:
> I'm *sure* its good, but the scale of speed-up from 4 minutes 27 seconds
> to 11 seconds is massively more than I expected. Especially as the
> insert point is at the end, rather than at the beginning or middle which
> would have required a lot of memmove type operations.
> 
Played with it today, surely ::append is on a critical path, but
beats me why exactly this is so much faster. Surely it saves some
temporary B2DPolygon instances...

...random theory of the day: does vector::reserve() always ensure
factor-of-two growth?

Cheers,

-- Thorsten

Attachment: pgpRvbiwlxgxa.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to