Skip to content

[JS] Use a flywheel for struct row #30863

@asfimport

Description

@asfimport

When we access a row from a table or a struct, we create a proxy for the struct. We could improve the performance of these accesses by creating a single instance of the proxy and store it on the vector or the data type and then reuse that instance.

This should improve performance.

See

return vector.bind(index) as T['TValue'];
and
const proto = this._row || (this._row = new StructRow<T>(this));
.

Reporter: Dominik Moritz / @domoritz

Note: This issue was originally created as ARROW-15379. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions