[poppler] [PATCH 4/4] SplashXPathScanner: Reduce complexity of sorting spans

Stefan Brüns stefan.bruens at rwth-aachen.de
Sat May 26 14:22:30 UTC 2018


On Samstag, 26. Mai 2018 10:47:58 CEST Albert Astals Cid wrote:
> El dissabte, 26 de maig de 2018, a les 9:33:50 CEST, Adam Reichold va
> 
> escriure:
> > Hello Stefan,
> > 
> > Am 26.05.2018 um 04:34 schrieb Stefan Brüns:
> > > To avoid large number of allocations for common simple polygons,
> > > boost::container::small_vector<4, T> is used, which stores up to
> > > 4 intersections inline. small_vector is a header-only class.
> > 
> > Even though it is header-only, it still means that Boost becomes a new
> > build time dependency. Hence also CMakeLists.txt needs to adjust to find
> > the Boost headers in possibly non-standard paths and giving a configure
> > time error message if the necessary Boost headers are not present.
> > 
> > Personally, I would like it very much if Boost becomes a build time
> > dependency for it contains many useful primitives and utilities. But I
> > guess it would be best to reduce your XPathScanner patch to something
> > purely based on the standard library - even if it allocates some more -
> > and tackle the issue of using small_vector in a separate follow-up patch.
> 
> Yes please, no boost unless using it gives us a 200% speed increase or
> something.

Thanks for your encouraging words ...

Unfortunately, it gives only a 100% speed increase (i.e. 30 minutes with 
small_vector, 60 minutes with std::vector), so probably I should stop here.

Regards,

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180526/bb00ced5/attachment.sig>


More information about the poppler mailing list