The Cost of Reflection: A Nuanced Look at C++26's New Feature The recent release of GCC 16 has brought a new level of scrutiny to C++26's reflection feature.
Developers are eager to know how much it will cost their compile times.
A benchmarking effort compared the performance of three approaches: reflection based enum to string conversion, the enchantum library, and traditional x macro techniques. The results might seem surprising at first.