Skip to content

Reduce allocations during parsing #810

Open
@diegommm

Description

@diegommm

Current parsing (and lexing) is very efficient in terms of direct CPU and memory usage, but it has an indirect cost on CPU because it performs many little allocations, which increases GC pressure.
In use cases where a large number of expressions need to be parsed, this can cause spikes in allocations whereas it can be rather easy to avoid.

I will provide a PR with improvements and benchmarks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions