Lenny Maiorani
d00b79568f
Libraries: Use default constructors/destructors in LibJS
...
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-16 16:19:40 +00:00
Andreas Kling
17f239e1c0
LibJS: Increase GC heap BlockAllocator cache size
...
Let's accept keeping up to 8 MiB of HeapBlock memory cached. This allows
the GC allocator to reuse memory instead of asking the kernel for more.
2021-10-08 00:35:29 +02:00
Idan Horowitz
ffaf27e4b6
LibJS: Add inline capacity to BlockAllocator's blocks Vector
...
There's no need to dynamically allocate a constant sized vector :^)
2021-05-28 00:07:24 +01:00
Andreas Kling
e9081a2644
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! :^)
2021-05-27 19:56:04 +02:00