[fpc-devel] new string - question on usage
Michael Schnell
mschnell at lumino.de
Tue Oct 11 10:58:08 CEST 2011
On 10/11/2011 11:28 AM, Hans-Peter Diettrich wrote:
>
> Excessive use of RawByteString is at least as inefficient as using
> Variant for everything :-(
>
While I still doubt that (only) RawByteString is a type that is to be
used for dynamical encoding....
That is correct, depending on what excessive means in a practical case.
If the encoding is the same in the flow of the complete program, only
the checking of the code ID is necessary and this does not impose
considerable speed degradation. If you deal with multiple encoding at
the same time in an unthoughtful way, a speed disaster is bound to happen.
-Michael
More information about the fpc-devel
mailing list