phaller / reactive-async

Expressive deterministic concurrency in Scala
BSD 2-Clause "Simplified" License
15 stars 9 forks source link

[performance] Avoid repeated invocation of callbacks with same value. #122

Closed JanKoelzer closed 6 years ago

JanKoelzer commented 6 years ago

Store (approximation) of last propagated value and compare. Callbacks will only be called, if an actually refined value would be propagated. Costs of callback execution can be avoided, but overhead is needed to store propagated values.

JanKoelzer commented 6 years ago

If #98 is a performance improvement, this PR will most likely be useless.

JanKoelzer commented 6 years ago

Implemented in #145 by a different approach.