The Mischievous Case-Insensitive Hash
In a comment to the previous article on a case insensitive hash code, Stefan Glienke pointed to an approach used in Spring4D’s comparers, which is a delightful hack.
Rather than converting the string to a “proper lower case”, it converts the string to an “approximate lower case” using an “or $20”, which happens to be good enough for a hash on string identifiers.
To figure the trick, one needs to check the ASCII Table. (more…)
Recent commits to the
In the wake of
SamplingProfiler 23.8.21
Here I will share my current workflow for low-level optimization, which these days is basically a roundtrip between Delphi,