The game I'm working on loads each level from information in an INI file. When loading each background object, the item "Obstacle" determines whether or not the object should be set to Obstacle.
At the moment, I use a string for this:
However, for some reason I imagine comparing values may be faster than comparing strings. Since some levels may load over 5000 objects this way, and I of course want the levels to load as fast as possible, I'm thinking of using a value comparison instead:
How much of a difference would it make?