[cairo] One more malloc reduction...

Chris Wilson chris at chris-wilson.co.uk
Mon Jun 4 12:04:08 PDT 2007

The attached patch attempts to allocate the edges for
_cairo_bentley_ottmann_tessellate_polygon() from the stack and then
amalgamates the allocation of two separate arrays into a single block.
I'm concerned that the latter may be considered ugly and not suitable
for inclusion.

The benefit is during cairo-perf:
(total)   nBlocks    nBytes
Before:   2,310,968  2,146,872,220
After:    2,076,832  2,086,549,224

Anyone not in favour of applying the patch?
Chris Wilson
-------------- next part --------------

More information about the cairo mailing list