mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 23:23:58 +00:00
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:
parent
fc5ebe2a50
commit
ba83bf8a0d
Notes:
sideshowbarker
2024-07-19 09:10:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba83bf8a0dc
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ struct [[gnu::packed]] allocation_t
|
||||||
};
|
};
|
||||||
|
|
||||||
#define BASE_PHYSICAL (0xc0000000 + (4 * MB))
|
#define BASE_PHYSICAL (0xc0000000 + (4 * MB))
|
||||||
#define CHUNK_SIZE 8
|
#define CHUNK_SIZE 32
|
||||||
#define POOL_SIZE (3 * MB)
|
#define POOL_SIZE (3 * MB)
|
||||||
|
|
||||||
#define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MB))
|
#define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MB))
|
||||||
|
|
Loading…
Reference in a new issue