On Samstag, 26. Mai 2018 21:02:07 CEST Adam Reichold wrote:
> Hello again,
> 
> you could try to initialize the SplashIntersection instances in place in
> addIntersection, i.e.
> 
> line.emplace_back();
> auto& intersection = line.back();
> // initialization
> 
> instead of
> 
> SplashIntersection intersection;
> // initialization
> line.push_back(intersection);
> 
> (I think the compiler might not be allowed to optimize copying the
> values from the stack into the vector due to exception safety in the
> case of allocation failure.)

This results in about 3% slowdown.

Kind regards,

Stefan


-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to