[fpc-devel] Is calling the Windows Unicode APIs really faster than the ANSI API's?

Ivo Steinmann ivo_steinmann at gmx.net
Mon Sep 29 11:15:40 CEST 2008


Michael Schnell schrieb:
>
>> The encoding can be important for speed:
>> For example the widestring xml parser is up to 10 times slower than
>> the ansistring xml parser.
>>   
> That obviously is the reason why Turbo - Delphi uses UCS-2 (16 bit)
> instead of OF UTF-8 or UTF-16 for WideStrings (and WideChar is a 16
> bit (UCS-2) value).
>
> -Michael
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
are you sure they are using UCS2 and not some 16bit codepages? That
exists also ;)



More information about the fpc-devel mailing list