Seeking some expert advice on strings and performance. This is the case;

Seeking some expert advice on strings and performance. This is the case;

At "prepare time" (where performance is not an issue) a list of strings is put together. The entries will be something like 4 - 16 characters each. There will be between 3 and 100 entries. The strings only need and only use 8-bits per character.

Then at "runtime" (where performance is key) i need to compare a given string (declared as string, 8-bit use) to the (now static, it won't change) list and determine whether there's an exact match or not. I do not need any other information.

The target is Win32 compiled with Delphi Seattle. Win64 /might/ be of value in the future but in that case (and other platforms) this code will be revisited.

TIA,

/Dany

Comments