mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user