alamb opened a new issue, #7941:
URL: https://github.com/apache/arrow-rs/issues/7941

   I just realized something -- when dealing with shredded variants, this 
`value` method will do a lot of work to unshred and encode the whole thing (see 
e.g. https://github.com/apache/arrow-rs/pull/7915#discussion_r2205755479). And 
that work is not memoized anywhere unless the caller is able to do so. For 
efficiency reasons we should strongly consider some kind of direct pathing 
support in `VariantArray` itself. Otherwise, it would be far too easy for a 
caller to accidentally do quadratic work when repeatedly calling value+get_path 
pairs for different paths.
   
   _Originally posted by @scovich in 
https://github.com/apache/arrow-rs/pull/7919#discussion_r2207925813_
               


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to