
This is a rather quick fix for Eventy that I have made with the v0.4.3
release. It should improve performance and technically lower the load average. This is due to the removal of the event-loop which would periodically (configurable or using yield
) check if there were any enqueued events and then dispatch them. We now dispatch events on the call to push(Event)
. Hence no spinning loop is needed which increases the time that thread is present in the run-queue hence increasing the load-average, secondly the dispatching would technically take longer as no signalling occurred - one would just wait for the kernel to schedule the event-loop whenever it decided to (in our case of using yield()
).
You can take a look at the release notes, or alternatively see the source code and DUB repository