jjbskir opened a new issue, #1148:
URL: https://github.com/apache/arrow-java/issues/1148

   ### Describe the enhancement requested
   
   The Java `VectorSchemaRoot.getVector(String name)` can be quite slow if a 
schema has many vectors. The code currently loops over all the field vectors 
until it finds the string match. [Link to 
code](https://github.com/apache/arrow-java/blob/3bc34b041761081ac32a7cd3b167f9ab8b628677/vector/src/main/java/org/apache/arrow/vector/VectorSchemaRoot.java#L175).
   
   Could we stroe a hash map of the `FieldVector` String name to the actual 
`FieldVector`? Basically the same thing as the `fieldVectorsMap` that maps the 
`Field` to `FieldVector`. For really wide datasets the trade off of a bit more 
memory for faster vector lookups would be really nice to have!
   
   Happy to open up a PR with the improvement, thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to