[fpc-devel] Is calling the Windows Unicode APIs really faster	than the ANSI API's?
    Florian Klaempfl 
    florian at freepascal.org
       
    Fri Sep 26 09:27:56 CEST 2008
    
    
  
Graeme Geldenhuys schrieb:
> On Fri, Sep 26, 2008 at 9:04 AM, Graeme Geldenhuys
> <graemeg.lists at gmail.com> wrote:
>> So has anybody actually done a timing comparision? Do you have your
>> test code available? Do you have your results published? I'm
>> interested to see the timing results using different hardware.
> 
> 
> What I'm getting at, is that if FPC implements a UnicodeString based
> on UTF-16, compared to UTF-8. It would be nice to base that decision
> on educated research and not just a hunch that UTF-16 will be faster
> on 1 of the 11 officially supported platforms.
Being honest, imo UTF-8 is only a hack to get unicode on platforms like
unix. Further, processing UTF-16 is much easier, for a lot of
applications faster and for important encodings like chinese more memory
efficient. If UTF-8 was easy to handle, we wouldn't have to convert
everything to UTF-32 on unix to do case conversations, comparisations etc.
    
    
More information about the fpc-devel
mailing list