C: using a lot of structs can make a program slow?
Posted
by nunos
on Stack Overflow
See other posts from Stack Overflow
or by nunos
Published on 2010-05-28T01:01:47Z
Indexed on
2010/05/28
1:11 UTC
Read the original article
Hit count: 174
I am coding a breakout clone. I had one version in which I only had one level deep of structures. This version runs at 70 fps.
For more clarity in the code I decided the code should have more abstractions and created more structs. Most of the times I have two two three level deep of structures. This version runs at 30 fps.
Since there are some other differences besides the structures, I ask you: Does using a lot of structs in C can slow down the code significantly?
Thanks.
© Stack Overflow or respective owner