I want to identify my loaded assets, but I don't know which one should I choose. There are 2 options:
- This is the easiest and also fast with unordered_map ( O(1) ), but way slower then using integers.
- Easily understandable in the code.
- Aren't understandable in code.
I know that strings are not so safe or fast, but is it that bad, or does it only count as bad in a AAA title? I could make enums, to use integers, but if I load the scene, assets, etc from a file at runtime, I can't use enums. Is there a way to make these integers readable if they are generated at runtime?
I know that this issue has a few threads all around the internet, but I couldn't find out how important in which cases is this.