Gabardone / BroadcastingCollections

The BroadcastingCollections framework, including tests and demo apps.
MIT License
3 stars 0 forks source link

Optimize away BroadcastingCollection operations when there's no listeners attached. #4

Open Gabardone opened 6 years ago

Gabardone commented 6 years ago

Right now all the BroadcastingCollection classes will go through all the motions, calculating complex diffs and broadcasting a number of messages to the void if no listeners are set.

At least for the editable types (which do most of the work), we should optimize away the work when no listeners are attached, and just directly change the storage collection. Some other types can also use the treatment (multi sourced broadcasting sets, for example).

Parameter error checking should still happen as currently.