Skip to content

Arena allocated collections #1386

@CrazyboyQCD

Description

@CrazyboyQCD

#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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions