Allocate initial array of RegionInfo on the stack.
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Nov 2008 01:20:38 +0000 (01:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 20 Dec 2008 16:55:09 +0000 (16:55 +0000)
commit9d726712c22d8555d00b9f1ebacd5425dc9a5b61
tree396d8db9bf19787866d95bca6aaa89aa8357ad0f
parent08530f5bf23386355a19b83db88173302c7a5300
Allocate initial array of RegionInfo on the stack.

The region validate() code is frequently called by cairo as it is used to
extract regions from the trapezoids for fast-paths through the drawing
code and also for fast-path clipping and the RegionInfo allocation (as
well as the pixman_rect_alloc during the final union) appears as a hot
spot on application memory profiles.
pixman/pixman-region.c