Kernel: Increase kmalloc chunk size from 8 bytes to 32 bytes

This gives a huge speedup when running "git status" in a SerenityOS
repository directory. Most of the time was spent allocating strings.
This commit is contained in:
Andreas Kling 2020-02-22 14:18:34 +01:00
parent fc5ebe2a50
commit ba83bf8a0d
Notes: sideshowbarker 2024-07-19 09:10:16 +09:00

View file

@ -47,7 +47,7 @@ struct [[gnu::packed]] allocation_t
};
#define BASE_PHYSICAL (0xc0000000 + (4 * MB))
#define CHUNK_SIZE 8
#define CHUNK_SIZE 32
#define POOL_SIZE (3 * MB)
#define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MB))