From 6e4279e76a5293b92e6e2cdaea7b8e4320e88303 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 9 Mar 2012 22:27:36 -0500 Subject: [PATCH] Bump the smallAlloc threshold up to 256 bytes. --- docs/TODO.txt | 1 - src/physfs_internal.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/TODO.txt b/docs/TODO.txt index 398fb4b..3f5f8c3 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -93,7 +93,6 @@ Other stuff I thought of... - ryanify iso9660 code. - Examine Chris Nelles's errorcode stuff. - Move archiver_qpak.c code to archiver_unpacked.c? -- Increase smallAlloc threshold? - Cache basedir/userdir results (do we do this already?) Probably other stuff. Requests and recommendations are welcome. diff --git a/src/physfs_internal.h b/src/physfs_internal.h index 9dce667..ca472f8 100644 --- a/src/physfs_internal.h +++ b/src/physfs_internal.h @@ -76,7 +76,7 @@ extern "C" { * NEVER forget to use smallFree: it may not be a pointer from the stack. * NEVER forget to check for NULL...allocation can fail here, of course! */ -#define __PHYSFS_SMALLALLOCTHRESHOLD 128 +#define __PHYSFS_SMALLALLOCTHRESHOLD 256 void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len); #define __PHYSFS_smallAlloc(bytes) ( \