Hello:
Show quoted text 5 lines
If you don't declare as "const" not "var", it copies the string. It doesn't matter if the internal implementation of ansistring is a pointer, for you it is a variable, and if you don't declare it a var parameter you expect that when you modify it inside the rutine the caller value won't be modified, so it must copy.
I've test it with ansistrings (using H+, and declaring explicit ansistring) and the results are similar:
with "const" of "var":
about 1 second
Without "const" nor "var":
about 17 seconds.
Regards
Santiago Amposta
