[fpc-devel] Performance of string handling in trunk

Sven Barth pascaldragon at googlemail.com
Wed Jun 26 20:01:19 CEST 2013


Am 26.06.2013 18:30 schrieb "Hans-Peter Diettrich" <DrDiettrich1 at aol.com>:
>
>
>
> Michael Schnell schrieb:
>
>> On 06/26/2013 03:44 PM, Marco van de Voort wrote:
>>>
>>> There never is a conversion when assigning to/from rawbytestring,
>>
>>
>> So what do you suggest should happen when assigning a RawByteString to a
normal String ? The result could be a strange thing that is encoded other
than the type requires. To me this behavior is a quirk go and should not be
capt just for compatibility. .
>
>
> Then you have two choices:
> 1) convert the string as required
> 2) copy the content unconverted, but update the encoding
>
> IMO a reasonable decision should take into account the use of the
RawByteString type in RTL code, e.g. for concatenation.

The RTL already uses RawByteString for the concatenation helpers.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130626/eef6f325/attachment.html>


More information about the fpc-devel mailing list