Open metab0t opened 1 year ago
Probably this is better: https://github.com/andyferris/AcceleratedArrays.jl
But there was some reason it didn't "just work" here, that may have changed now. Try a PR?
Edit: also no point doing this just for Integer
- implement it for any unordered lookup.
For Ordered Regular array of integer, we can get the index quickly from its start and span. (now we use
searchsortedlast
for all Ordered) For Unordered array of integer, can we use a Dict to accelerate the lookup?