Commit Graph

2 Commits (50c233b58c68b9efd5242cc2b0d72ae5ab16e798)

Author SHA1 Message Date
Mike Lang 50c233b58c fix copy paste error in v3/v4 and benchmark duplicate merges
Merging 1000 duplicates of the same batch:
v1: 98ms
v2: 101ms
v3: 116ms
v4: 116ms

So as expected v3 and v4 have a small cost with duplicates for optimizing for non-overlapping,
but even with ridiculous numbers duplicates are fast to process anyway.
1 month ago
Mike Lang c87a25e875 merge_v4 is more specialized to merge large numbers of non-overlapping batches
It can do 24h of batches in 180ms, ~180x faster than v1.

I'm a little concerned it's overly specialized for that role and will be slow to merge duplicate batches,
but those operations involve tiny amounts of data by comparison so it doesn't really matter.
1 month ago