Closed dgryski closed 5 years ago
This is just taking the attached patches from #35 and making a github pull request.
I agree there is a bug in siftUp(), but I'm not entirely sure why it doesn't manifest itself in production.
Any reason why this is not merged in master?
Mostly because @rsc is busy with other things.
I just hit this with my current corpus. I had added a panic()
to mergePost()
in case I ever tried to merge out-of-order elements and for the first time today it fired. So, indeed this does happen in production, but clearly it is rare.
Pinging @rsc again to get this merged.
@dgryski may be Russ has lost interest in this codebase or has not the time to handle this at all? I can see that @dominikh and especially @junkblocker have reasonably active forks. May it would be time to take over the code and maintain it entirely elsewhere? Just food for subversive thoughts
And both forks have included the siftUp()
patch too. I agree the README should probably be updated to point to the other maintained forks.
Fixes #35