Thank you Ed and StarCrunch for your explanations.
By the end of the day I’ll have two tables, each filled with ~2500 key-value-pairs. Ed, it’s the tables for the utf8-emoji mapping
I won’t directly loop through those tables, even though behind the scenes a looping might occur, I dont know what technically is happening in the background.
Consider an emojiMap, where the key is a utf8 codepoint and its value is its respective position in an imageSheet:
local emojiMap = {}
emojiMap[128513] = 294
emojiMap[128515] = 423
emojiMap[128514] = 123
Since new emojis can be cominbations of two or even more emojis or even skincolor-modifiers, (consider the family-emojy for example, which is a combination of a man, a woman, a boy, and another boy) I need keys like
emojiMap[128513-128542-128256-128356] = 345
So, my original question aimed at finding out wether
emojiMap[“128513-128542-128256-128356”] with a string as index would be way worse than
emojiMap[128513128542128256128356] with possible huge integers.
Now, if I understand you two correct, since my tables are predefined and therefor hashed, I can go for strings without a noticeable difference. Correct?