Make unionWith use a merge instead of an alter loop
Closed this issue · 2 comments
no-longer-on-githu-b commented
I think unionWith could do a merge because both maps are already sorted. This would be O(n). Currently it does an alter loop which is O(n log n).
no-longer-on-githu-b commented
Ganz toll!