freed-pool: Enlarge the freed cache

Clips end up recursing more than 4 levels and so we need a larger stash
to avoid mallocs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-07-24 10:05:43 +01:00
parent 04ef07ee3b
commit 5ac9e3e281

View file

@ -44,7 +44,7 @@
/* Keep a stash of recently freed clip_paths, since we need to
* reallocate them frequently.
*/
#define MAX_FREED_POOL_SIZE 4
#define MAX_FREED_POOL_SIZE 16
typedef struct {
void *pool[MAX_FREED_POOL_SIZE];
int top;