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


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   The cost of building a comparator (initialising a DynComparator) is often 
significantly higher than the actual cost of executing the comparator's closure 
on two row IDs. Therefore it makes sense to build the comparator once, and 
re-use the returned DynComparator for each row you are comparing the two arrays 
on.
   
   Due to the explicit lifetime of DynComparator I recently found it 
problematic to store the DynComparator on an object that was used across 
threads in an async environment.
   
   **Describe the solution you'd like**
   Remove lifetime from DynComparator
   


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