فهرست منبع

Bump the smallAlloc threshold up to 256 bytes.

Ryan C. Gordon 14 سال پیش
والد
کامیت
6e4279e76a
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      docs/TODO.txt
  2. 1 1
      src/physfs_internal.h

+ 0 - 1
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.

+ 1 - 1
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) ( \