The hash thing would be a good idea if you were going to store a number of heights in a hash table, but you still have to store the original values in the table to check for hash clashes, and Geany's most common use-case (AFAIK) has all scintilla settings the same so a single cache is sufficient.
github-comments@lists.geany.org