[Mono-dev] [PATCH] Boost speed of UnicodeEncoding

Andreas Nahr ClassDevelopment at A-SoftTech.com
Thu Mar 16 18:36:42 EST 2006


> just write else section with fast path for 0 and 1 byte count here.
>
> +        else {
>
> +            while (count >= 16) {
>
> +                dest[0] = src[1];
>
> +                dest[1] = src[0];
>
> +                dest[2] = src[3];
>
> Why is it not a part of string.memcpy ?


I think there is not much general use for doing byte-swapped memory copies 
(At least I can't think of any ;) 




More information about the Mono-devel-list mailing list