bennidi / mbassador

Powerful event-bus optimized for high throughput in multi-threaded applications. Features: Sync and Async event publication, weak/strong references, event filtering, annotation driven
MIT License
955 stars 146 forks source link

Array speedup #125

Closed dorkbox closed 9 years ago

dorkbox commented 9 years ago

Sorry this has taken a LOT longer than I hoped. I've been swamped with work and travel, so it's been difficult to find the time to do this.

There aren't massive improvements, however - there are some. The initial startup is noticably better as well. Because of the y-axis scaling, it is difficult to interpret the results. Based on my observations, the array_speed up, per message-dispatch, is somewhere between 50-80ms. Not substantial, but helpful.

Once I get the MTAQ into JCTools, I'll submit another PR.

The first screenshot is master, the second is array_speedup.

chart

chart

bennidi commented 9 years ago

Nice. Will review and merge this code on the weekend. Maybe it can be released this weekend as well. I really need to get my hands on the project again. People have been complaining. Neighbours started gossiping already :)