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:
pgpX6HbfjGpDP.pgp
Description: PGP signature
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.