How do opcode decoding speedup tables work? #397
-
|
I having trouble to understand the meaning of the values stored in |
Beta Was this translation helpful? Give feedback.
Answered by
vhelin
Mar 21, 2021
Replies: 1 comment
-
|
If I remember correctly:
A quick optimization I did back around 20+ years ago, we use the first character in the source code and jump using that to the entries in g_opcodes_table that start with that character. But if we have 100 entries that start with character A (like AND...) we'll go through them all and stop as soon as we find a match in the mostly sorted structure... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lhsazevedo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I remember correctly:
A quick optimization I did back around 20+ years ago, we use the first character in the source code and jump using that to the entries in g_opcodes_table that start with that character. But if we have 100 entries that start with character A (like AND...) we'll go through them all and stop as soon as we find a match in the mostly sorted structure...