bearophile wrote:
And regarding the problem of searching in a sequence of items, if the sequence is small (probably up to 10 or 20 if the items are integers, the language is a low level one and the associative array is not very efficient), a linear search or a binary search is often faster.
Yup, and that piece of code was written in a time where there were very few items added into the string table. It never showed up on the radar before.