[ 
https://issues.apache.org/jira/browse/ARROW-11347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17270450#comment-17270450
 ] 

Dominik Moritz commented on ARROW-11347:
----------------------------------------

Yes, when accessing an element of an array (e.g. after `toArray()`). 

Before making the change, someone needs to look closer into the performance 
benefits and usability. Jeff created his own parser for Arquero, which can make 
some simplifying assumptions and is less general but also almost twice as fast 
(https://github.com/uwdata/arquero-arrow/tree/main/perf). It would be good to 
figure out why. I think Maps are generally nicer than Objects for users so 
maybe it's worth the performance difference. It would be great if you could 
share how you decided on Maps in the first place. 

> [JavaScript] Consider Objects instead of Maps
> ---------------------------------------------
>
>                 Key: ARROW-11347
>                 URL: https://issues.apache.org/jira/browse/ARROW-11347
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: JavaScript
>            Reporter: Dominik Moritz
>            Priority: Major
>              Labels: performance
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> A quick experiment 
> (https://observablehq.com/@domoritz/performance-of-maps-vs-objects) seems to 
> show that object accesses are a lot faster than map accesses. Would it make 
> sense to switch to objects in the row API to improve performance? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to