Long strings: Hash vs Sorted vs Unsorted
Hash, IndexOf, Lookup, Performance, Search, Sorted, String
As a followup to the previous String Lookup: Hash, Sorted or Unsorted here is a look at what happens for longer strings.
When the string you’re searching have more than a dozen characters, and you only have a few hundreds of them, a clear winner emerges.
When looking up a string, what is the fastest strategy?
A trivial way to turn a case-sensitive String hash function into a case-insensitive one is to to pass a lower-case (or upper-case) version of the String.
[This is a guest post, written by Primož Gabrijelčič,
By popular request, here is the source code used for the previous
After looking at
You may all know about String concatenation in Delphi, but do you know about the implicit String variables the compiler may create for you?