[fpc-devel] RawString

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Jun 29 00:23:02 CEST 2013


Michael Schnell schrieb:

> 5) In DXE the TStringList (and supposedly TStrings) class  uses "String" 
> as it's user interface, In Delphi, "String" is mapped to a Type that is 
> strictly encoded as a (windowish) two-Byte Unicode Type. This results in 
> a huge performance hit when using it with a (normal) string variable 
> with another encoding type, as storing and retrieving results in a dual 
> conversion.

You forget that the "normal" string type is UnicodeString, making *your* 
suggestion extremely slow.

DoDi




More information about the fpc-devel mailing list