17 Commits

Author SHA1 Message Date
Dawid Drozd
9eaa09f9ec Fix 2018-07-24 14:50:47 +02:00
Dawid Drozd
beb6599ee4 Add performance compare to Poco::NotifactionCenter 2018-07-24 14:16:05 +02:00
Dawid Drozd
4f4cb4a7e8 Remove bad flag
It is only working for GCC
2018-07-24 13:04:30 +02:00
Dawid Drozd
685562c632 Reorganize project layout
Inspired by: https://www.youtube.com/watch?v=6sWec7b0JIc
2018-07-24 12:47:10 +02:00
Dawid Drozd
c4f0b8b233 Update cmake flags 2017-09-10 13:05:36 +02:00
Dawid Drozd
fc1dbe335f Update EventBus to 2.1.0 inspired by Boost::MSM
I was wondering if it is a good step for EventBus. Of course, it will break back
compatibility again as well as it was when changing v1 -> v2, but this change is
smaller. Those changes were inspired by Boost::MSM how it handles events.

Why i decided to change:

+ It will prevent from bugs like typo in Event string eg. Event<int>{"text"}
+ If we want to change signature of Event, we won't have to update all listeners
and their signature
+ Less includes for listener. Simply in our class header we will have eg.
pointer/ref to event type not to all args
+ Strongly typed (this is always better)
+ Storing event for future reuse
+ More easy to introduce thread safe EventBus in future
+ EventBus is more simple
+ const Event forbids some kind of communication. Eg. passing and modifying
reference
+ Less errors when using std::bind

- Breaking back compatibility
- Need fixes in projects that using this lib
- Someone can add methods etc. to Event :(
- We can't generate easily multiple "types" of events like in 'for' loop
- Worst performance (still not such bad as CCNotificationCenter)
2017-08-26 13:28:45 +02:00
Dawid Drozd
71530ac7f5 Fix warnings from clang 2017-08-15 20:26:38 +02:00
Dawid Drozd
dc12c1c532 Update README 2017-08-06 18:16:41 +02:00
Dawid Drozd
4c667c7c46 Update performance README 2017-08-06 17:14:29 +02:00
Dawid Drozd
fe92d55eb0 Remove duplicated performance test
Removing old test that was used to compare with EventBus v1.x
2017-08-06 17:13:53 +02:00
Dawid Drozd
ffbf4b91a9 Update compile flags 2017-08-06 17:13:00 +02:00
Dawid Drozd
a46362bc6b Update README 2017-08-06 16:32:09 +02:00
Dawid Drozd
94973b5779 EventBus 2.0.0 2017-08-06 11:22:59 +02:00
Dawid Drozd
1db41d903a Add new implementation of EventBus
Simply new version breaks back compability and simply is better ;)
2017-08-06 00:14:35 +02:00
Dawid Drozd
356ba4f145 Update performance tests 2017-08-05 19:39:20 +02:00
Dawid Drozd
919bc90579 Add sample performance test 2017-08-05 13:27:35 +02:00
Dawid Drozd
be3d01c717 Add benchmark google library v1.2.0 2017-08-05 12:22:42 +02:00