Releases: Xiaofei-it/HermesEventBus
Releases · Xiaofei-it/HermesEventBus
v0.3.0
v0.2.0
Enhancements
HermesEventBus of the earlier versions synchronizes on the IMainService
instance every time the action or calculation is performed, even after the service has been connected. This is meant to eliminate the write-after-write hazard and the read-after-write hazard, but makes the IPC slower.
This version improves the performance of the IPC to make it faster from the following aspects:
- When the service is being connected, move the incoming actions and calculations into a queue.
- After the service has been connected, perform the pending actions and calculations in the queue.
- Before the pending actions and calculations has been performed, any incoming action or calculation will also be added into the queue to eliminate the write-after-write hazard and the read-after-write hazard.
- After the pending actions and calculations has been performed, the subsequent actions and calculations will be performed immediately without synchronization.
v0.1.6
Bugfixes
- Fix a bug which will cause the failure of connection when sending and receiving events between apps.
- Fix a potential bug: Suppose that a sub-process sends an event to the main process before it finishes the connection to the main process. And the main process sends an event to the sub-process immediately after it receives the event sent from the sub-process. Then the sub-process will not receive the event sent from the main process.
New features and enhancements
- Add more annotations on
MainService
andSubService
. - Allow a user to re-initialize HermesEventBus after invoking
HermesEventBus.destroy()
.