Skip to content

[PERF] use arraypool for visitor method params #612

Description

@b3b00

Instead of creating a new array per visited node, use .NET's built-in System.Buffers.ArrayPool.
At the start of the node visit, rent an array from the pool that matches parametersCount.
Copy the parameters into it.
Pass it to the visitor.
Immediately after the visitor returns, return the array to the pool.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions