1
Fork 0
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:
Andreas Kling 2021-10-26 10:37:36 +02:00
parent 25250590d0
commit b443e9e1a9

View file

@ -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)