Classes vs. Structs. How not to teach about performance!
I always love reading posts by Sergey Teplyakov. Even though they are sometimes overly technical and tough to go through (not a bad thing at all). This one is a great example of why you should always profile your code, especially critical parts on the hot path, and not believe tests on the web, as some authors try to mislead you for their reasons or just out of pure negligence or ignorance.
https://sergeyteplyakov.github.io/Blog/benchmarking/2023/11/02/Performance_Comparison_For_Classes_vs_Structs.html
#performance #benchmark
Post #2320
533