Fokko commented on issue #35748:
URL: https://github.com/apache/arrow/issues/35748#issuecomment-1591178372

   Thanks for the input, I really appreciate it. I went with the following:
   
   
![image](https://github.com/apache/arrow/assets/1134248/bc963ae2-33c8-44a4-8410-bc04340cdd1c)
   
   As expected, it is an order of magnitude faster than my fancy generator. It 
seemed that 
[numpy.setdiff1d](https://numpy.org/doc/stable/reference/generated/numpy.setdiff1d.html)
 is doing what I was looking for. As expected, sorting the array upfront does 
not help the performance. I'm going to close this one now since the performance 
looks satisfactory. Again, thanks for the pointers!


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