jonhoo / left-right

A lock-free, read-optimized, concurrency primitive.
Apache License 2.0
1.95k stars 94 forks source link

Implement Extend for WriteHandle #86

Closed glittershark closed 3 years ago

glittershark commented 3 years ago

Add a impl for Extend to WriteHandle, to append multiple operations from an iterator from the oplog at once. In addition to convenience, this has the potential to be more efficient by avoiding reallocating the vector for the oplog multiple times.


This change is Reviewable

codecov[bot] commented 3 years ago

Codecov Report

Merging #86 (2bc00e3) into master (9821e18) will decrease coverage by 0.10%. The diff coverage is 0.00%.

Impacted Files Coverage Δ
left-right/src/write.rs 0.00% <0.00%> (ø)
jonhoo commented 3 years ago

That's a great idea, love it! One little nit inline and then I'm happy to merge this.

jonhoo commented 3 years ago

Thanks!

jonhoo commented 3 years ago

Published in left-right 0.11 and evmap 11.0.0-alpha.5 :tada: