Closed mkhan45 closed 2 years ago
Ah, I was confused too for a while, but it turns out this performance bug has been fixed already on GitHub but not yet in opam. If you look at the code for v0.14, which is the latest opam release, you will see the performance issue you identified in the source code:
That's good to know. Is there a timeline for when the next version will be released on opam?
I guess this issue should be closed
Not sure, probably @aalekseyev or @cwong-ocaml would know.
We're aiming for doing it this year, but I'm afraid I don't have a more specific timeline.
I ran into this when writing an interpreter which often attempts to zip lists of very short length with lists of very long length.
Here's an example script:
From
perf
, I saw thatcheck_length2
is the cause of the problem, but it's not immediately obvious to me why after reading through the source.This simple function fixes it for my use case: