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