TimelyDataflow / differential-dataflow

An implementation of differential dataflow using timely dataflow on Rust.
MIT License
2.51k stars 182 forks source link

Make `Abelian::negate()` act on borrowed data #504

Closed frankmcsherry closed 1 month ago

frankmcsherry commented 1 month ago

Abelian::negate() took a self argument, which meant that in several cases it provoked a clone() call that wasn't strictly necessary. The negate() dataflow operator, for example, would simply clone the diff in order to negate it, which is fine for isize but less great for Vec<Diff> types.