1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:57:35 +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:
Andreas Kling 2021-05-27 19:01:26 +02:00
parent d2149c153c
commit e9081a2644
6 changed files with 101 additions and 8 deletions

View file

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