Dominik Moritz created ARROW-15379:
--------------------------------------
Summary: Use a flywheel for struct row
Key: ARROW-15379
URL: https://issues.apache.org/jira/browse/ARROW-15379
Project: Apache Arrow
Issue Type: Improvement
Reporter: Dominik Moritz
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
https://github.com/apache/arrow/blob/7029f90ea3b39e97f1a671227ca932cbcdbcee05/js/src/visitor/get.ts#L219
and
https://github.com/apache/arrow/blob/7029f90ea3b39e97f1a671227ca932cbcdbcee05/js/src/vector/struct.ts#L27.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)