You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Brian Hulette (JIRA)" <ji...@apache.org> on 2017/10/05 15:28:04 UTC

[jira] [Created] (ARROW-1652) [JS] Batch hint for Vector.get

Brian Hulette created ARROW-1652:
------------------------------------

             Summary: [JS] Batch hint for Vector.get
                 Key: ARROW-1652
                 URL: https://issues.apache.org/jira/browse/ARROW-1652
             Project: Apache Arrow
          Issue Type: Improvement
          Components: JavaScript
            Reporter: Brian Hulette


The {{Vector.get}} function just accepts an index, and looks up the appropriate record batch on every call. This can lead to a lot of additional lookups when iterating by index. It would be nice if {{Vector.get}} accepted an optional batch hint, similar to [{{Vector.range}}|https://github.com/apache/arrow/blob/master/js/src/vector/typed.ts#L51]

Additionally, if {{Table}} had some knowledge of the batches in it's Vectors, it could use this batch hint to improve performance when iterating over rows.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)