mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Use a larger kmalloc chunk size on 64-bit platforms
This reduces test-js runtime by over 40% on my machine. (And once again we find another way to defer writing a better kernel heap allocator..)
This commit is contained in:
parent
25250590d0
commit
b443e9e1a9
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,12 @@
|
|||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/StdLib.h>
|
||||
|
||||
#define CHUNK_SIZE 32
|
||||
#if ARCH(I386)
|
||||
static constexpr size_t CHUNK_SIZE = 32;
|
||||
#else
|
||||
static constexpr size_t CHUNK_SIZE = 64;
|
||||
#endif
|
||||
|
||||
#define POOL_SIZE (2 * MiB)
|
||||
#define ETERNAL_RANGE_SIZE (4 * MiB)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue