From e220d3228f48d4cb3256b398b45b40bf6892e550 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Oct 2013 18:18:13 +0000 Subject: add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space. --- source/blender/blenlib/BLI_memarena.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_memarena.h') diff --git a/source/blender/blenlib/BLI_memarena.h b/source/blender/blenlib/BLI_memarena.h index 9ff4883c89c..737324ebc16 100644 --- a/source/blender/blenlib/BLI_memarena.h +++ b/source/blender/blenlib/BLI_memarena.h @@ -47,7 +47,7 @@ extern "C" { * enough to not cause much internal fragmentation, * small enough not to waste resources */ -#define BLI_MEMARENA_STD_BUFSIZE (1 << 14) +#define BLI_MEMARENA_STD_BUFSIZE MEM_SIZE_OPTIMAL(1 << 14) struct MemArena; typedef struct MemArena MemArena; -- cgit v1.2.3