[FEATURE] Investigate Adding a Variant Based Implementation #33
Labels
enhancement:dev
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
After a discussion on my discord with a user, it came up that there may be some easy performance gains by using
std::variant
instead ofstd::any
withstd::any_cast
. I'd like to investigate looking into using this as an alternative implementation of the event bus and then allow users to opt in (or out) of a particular implementation using a policy or something similar.There should also be a benchmark to compare the performance between the two implementations (mostly to see how long event dispatch takes).
The text was updated successfully, but these errors were encountered: