Skip to content

delegate_function_scalar and delegate_function_aggregate_step use sqlite3_value[] as opposed to ReadOnlySpan<sqlite3_value> #620

@arontsang

Description

@arontsang

In both of these cases, using arrays, without array pooling is causing unneccessary GC pressure (especially since we are reading from a C array in the first place).

Expose the original C arrays as ReadOnlySpan<sqlite3_value>, and then create a trampoline to allow legacy delegates to work with arrays.

This will allow future code to be able to access the arguments directly without allocation and without copying, whilst working with existing code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions