TGViewer
Everyday Unity Everyday Unity @everydayunity · 1.18K subscribers
Post #2320 533
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
Dissecting the Code Classes vs. Structs. How not to teach about performance! It’s been a while since my last blog post, but I believe it’s better to post late than never, so here I am!
  • 🔥 7
  • 👍 1
More from @everydayunity
  1. Sep 24, 2026Now you can change the effort mid session in new Claude. So the advice about caching from…
  2. Sep 24, 2026We were wondering in the comments what Claude reset does. Here is the answer https://www.r…
  3. Sep 22, 2026Introducing GPT‑6 Sol and Luna And better & cheaper sol and luna as an immediate response…
  4. Sep 22, 2026Introducing Claude Opus 5.5 \ Anthropic Cost and speed. Opus 5.5 requires less compute to…
  5. Sep 21, 2026Claude Code effort level and model selection effort means more than just "thinking time."…
  6. Sep 19, 2026Netcode for GameObjects 3.0.0 is now available It is preparation for Unity’s shared Netcod…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →