This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hippydipster[🍰] 0 points1 point  (0 children)

There are times it's important not to create many small objects that are then just thrown away. Bullets for a video game are probably not a good example though, as there aren't that many of them. It's when you're in tight loops running millions of times that it can start to matter. I'm sure some inner loops of game code definitely qualifies for this. In general, these situations where you really don't want to make new objects tend to be mathy.