TimelyDataflow / timely-dataflow

A modular implementation of timely dataflow in Rust
MIT License
3.25k stars 273 forks source link

Offer PushContainer::should_flush #561

Closed antiguru closed 3 months ago

antiguru commented 4 months ago

The should_flush function returns true if the holder of a container should consider it full and flush it.

This is in support of containers that perform additional work on push, which might not amortize well. In case, the container can indicate that it would be better to flush it instead of keeping pushing elements at it.

Note that this is a draft and still needs to be validated.

antiguru commented 3 months ago

Superseded by #562