mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:07:44 +00:00
LibJS: Recycle up to 64 HeapBlocks to improve performance :^)
This patch adds a BlockAllocator to the GC heap where we now cache up to 64 HeapBlock-sized mmap's that get recycled when allocating HeapBlocks. This improves test-js runtime performance by ~35%, pretty cool! :^)
This commit is contained in:
parent
d2149c153c
commit
e9081a2644
6 changed files with 101 additions and 8 deletions
|
@ -2,7 +2,8 @@ set(SOURCES
|
|||
AST.cpp
|
||||
Console.cpp
|
||||
Heap/Allocator.cpp
|
||||
Heap/Handle.cpp
|
||||
Heap/BlockAllocator.cpp
|
||||
Heap/Handle.cpp
|
||||
Heap/HeapBlock.cpp
|
||||
Heap/Heap.cpp
|
||||
Interpreter.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue