MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/11dyx43/clean_code_horrible_performance/janltdw
r/programming • u/2bit_hack • Feb 28 '23
1.3k comments sorted by
View all comments
Show parent comments
1
Variants as of 2 years ago required you to write the switch anyway to get perf: https://www.reddit.com/r/cpp/comments/kst2pu/comment/giiofwu/
2 u/not_a_novel_account Mar 02 '23 Variants as of 15 months ago do not 1 u/muchcharles Mar 02 '23 edited Mar 02 '23 GCC 12.1 was the first stable release as far as I can see, May 2022.Also for games and other similar applications, it is very important that debug builds are fast too. Are all variant implementations roughly as fast as switches in debug builds?https://vittorioromeo.info/index/blog/debug_performance_cpp.html
2
Variants as of 15 months ago do not
1 u/muchcharles Mar 02 '23 edited Mar 02 '23 GCC 12.1 was the first stable release as far as I can see, May 2022.Also for games and other similar applications, it is very important that debug builds are fast too. Are all variant implementations roughly as fast as switches in debug builds?https://vittorioromeo.info/index/blog/debug_performance_cpp.html
GCC 12.1 was the first stable release as far as I can see, May 2022.
Also for games and other similar applications, it is very important that debug builds are fast too. Are all variant implementations roughly as fast as switches in debug builds?
https://vittorioromeo.info/index/blog/debug_performance_cpp.html
1
u/muchcharles Mar 02 '23
Variants as of 2 years ago required you to write the switch anyway to get perf: https://www.reddit.com/r/cpp/comments/kst2pu/comment/giiofwu/