String Operations That Fail or Slow Down

When working with strings, and particularly when moving existing string processing code to Delphi 2009, there are two different issues for which you have to watch out. First, you have to check if all operations produce the same result, which at times is not the case. Second, you have to be sure that some operations don't become terribly slow.

The terrible slow down generally happens because of implicit string conversions, and in particular when you want to keep AnsiString variables around. If the original AnsiString declaration was in your code to differentiate from the ShortString type, then moving your code to use the generic string type might be your best option.

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment