Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bump the smallAlloc threshold up to 256 bytes.
  • Loading branch information
icculus committed Mar 10, 2012
1 parent 9dceda3 commit 6e4279e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/TODO.txt
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/physfs_internal.h
Expand Up @@ -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) ( \
Expand Down

0 comments on commit 6e4279e

Please sign in to comment.