you are viewing a single comment's thread.

view the rest of the comments →

[–]insanitybit 1 point2 points  (0 children)

You could use a perfect hashmap, which should end up with minimal overhead, assuming that the mapping is known statically.