TimelyDataflow / differential-dataflow

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

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

Closed frankmcsherry closed 5 months ago

frankmcsherry commented 5 months 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.