diff options
| author | Raezroth <47491977+Raezroth@users.noreply.github.com> | 2023-11-18 00:14:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-18 09:14:05 +0100 |
| commit | 02bad8bcd1e5753ed256d0899ea8945c3b810623 (patch) | |
| tree | 3f9368ed6b6abd317ba29334b3fa2f664a703adb | |
| parent | 54be0c0dec8ad3c81caa0366f84c056717792cb2 (diff) | |
| download | box64-02bad8bcd1e5753ed256d0899ea8945c3b810623.tar.gz box64-02bad8bcd1e5753ed256d0899ea8945c3b810623.zip | |
Change blokc size to 64kb (#1071)
This gives a slight performance increase to applications like Steam on devices with only 4GB ram
| -rw-r--r-- | src/custommem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c index c5923013..1a729fe9 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -103,7 +103,7 @@ typedef struct blocklist_s { void* first; } blocklist_t; -#define MMAPSIZE (256*1024) // allocate 256kb sized blocks +#define MMAPSIZE (64*1024) // allocate 64b sized blocks static int n_blocks = 0; // number of blocks for custom malloc static int c_blocks = 0; // capacity of blocks for custom malloc |