25 Feb
2019
25 Feb
'19
7:59 p.m.
With respect to Niall's request for compile time and run time measurements, I've added a benchmark
https://github.com/pdimov/variant2/blob/develop/benchmark/benchmark1.cpp
and the results from compiling and running it on my machine are at
https://github.com/pdimov/variant2/blob/develop/benchmark/benchmark1.md
This is not a cherry-picked example that makes variant2 look good, so it loses to std::variant here and there. :-)
These are very interesting and useful, thank you. I now have hard evidence with which to persuade people at work that Boost.Variant needs to be purged from our latency critical paths. Thank you. Niall