Closed mikeal closed 5 years ago
Also, I modified how and when the loop calls bl.consume()
so that it only does it once per fingerprint. This should cut out a bunch of unnecessary memcopies.
Now that I think about it, an even more efficient approach would be to do buffers = buffers.shallowSlice(start)
so that it doesn’t do a memcopy at all.
I can send that as another PR or add it to this one. Let me know what you’d prefer.
Closing.
There’s a bug but I was wrong about the nature of the bug, I’ll send a new PR.
I had to modify one of the tests because I think it was actually wrong about how rabin should chunk up the data it was testing.
4 browser tests are failing on my machine, but they were already failing with the current checkout so hopefully CI can show me if this is just a local issue or not.