#1358 related.
Objective
Performance degradation has occurred after changings of the memory pool. We could have a better way to reduce the performance gap, I suggest adding some collections that use the arena as the allocator, this can also make some temporary allocations more performant.
Implementation reference from oxc.
DrawBack
-
Since allocator requires to be outlived the allocations, a main thread-safe allocator should be passed in user code, which needs changes in the C API.
-
This will increase memory usage since allocations only drop when allocator drops.
#1358 related.
Objective
Performance degradation has occurred after changings of the memory pool. We could have a better way to reduce the performance gap, I suggest adding some collections that use the arena as the allocator, this can also make some temporary allocations more performant.
Implementation reference from
oxc.DrawBack
Since allocator requires to be outlived the allocations, a main thread-safe allocator should be passed in user code, which needs changes in the C API.
This will increase memory usage since allocations only drop when allocator drops.