A faster alternative to boost:any / std::any
From my benchmarks in DSPatch, fast_any
is over 2x faster than std::any
std::any
:
0x Buffers, 0x Threads, 10000x Components: 0.187939ms
fast_any
:
0x Buffers, 0x Threads, 10000x Components: 0.085511ms
- Test code: https://github.com/cross-platform/dspatch/blob/master/tests/main.cpp
- Test branch using
std::any
: cross-platform/dspatch#53