anjakefala opened a new issue, #34535:
URL: https://github.com/apache/arrow/issues/34535

   ### Describe the enhancement requested
   
   
[ChunkResolver.Resolve](https://github.com/apache/arrow/blob/45918a90a6ca1cf3fd67c256a7d6a240249e555a/cpp/src/arrow/chunk_resolver.h#L35)
 is used by `ChunkedArray.getStatic()` in order to identify which chunk, and 
which index into that chunk, correlate with a given index into the whole array. 
`getStatic` then does additional work to wrap the value into a  
`Result<std::shared_ptr<Scalar>>`. The creation and return of a `shared_ptr` 
does result in some performance overhead, that makes a difference for a 
performance-sensitive application.
   
   If someone could use `ChunkResolver` to learn the indices, they could then 
instead access the data directly. This would provide a more efficient way of 
indexing into a `ChunkedArray`, should an application benefit from it.
   
   Would it be possible to move `ChunkResolver` to public API? 
   
   ### Component(s)
   
   C++


-- 
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