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.
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
arrow/js/src/visitor/get.ts
Line 219 in 7029f90
arrow/js/src/vector/struct.ts
Line 27 in 7029f90
Reporter: Dominik Moritz / @domoritz
Note: This issue was originally created as ARROW-15379. Please see the migration documentation for further details.