[fpc-devel] Unicode RTL

Florian Klaempfl florian at freepascal.org
Wed Nov 16 13:57:00 CET 2005


Daniël Mantione wrote:

> 
> Op Wed, 16 Nov 2005, schreef Vincent Snijders:
> 
> 
>>Daniël Mantione wrote:
>>
>>>
>>>What should be done on Linux/FreeBSD/MacOS is still unknown to me, it is
>>>a wild west, but likely something similar, internally a widestring rtl is
>>>used that converts to the right encoding when communicating externally.
>>
>>Does that mean string operations will be twice a slow?
> 
> 
> I don't think so. A string copy operation for a wide string needs to move 
> twice as much data as a string copy operation for an ansistring. However, 
> when walking through it, (take the widestring version of pos for example) 
> the amount of work per character does not change.

Modern CPUs are memory bandwidth limited usually so widestrings a lot slower.

> 
> The big trouble is the conversion stuff when you need communication with 
> the outside world.
> 
> Daniël
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list