brianush1 / zua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

instance strings to speed up hashmap lookups and reduce bytecode size

brianush1 opened this issue · comments

Currently, duplicate strings are duplicated in memory, making comparisons between two strings take O(n) time. This is not ideal, as Lua uses strings in indexing very often, and may be a major bottleneck in performance-sensitive code.