[ 
https://issues.apache.org/jira/browse/ARROW-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Hulette updated ARROW-1652:
---------------------------------
    Description: 
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 its Vectors, it 
could use this batch hint to improve performance when iterating over rows.

  was:
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.


> [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
>              Labels: Performance
>
> 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 its 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)

Reply via email to