mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 12:37:58 +02:00
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:
parent
04ef07ee3b
commit
5ac9e3e281
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue