Carl, inIn a follow-up answer, you asked about the relative performance of these two alternatives:
Example 1: identical dictionaries mapping 20 consecutive integers to themselves:
Example 2: non-overlapping dictionaries mapping 252 short strings to integers and vice versa: