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

Kornél Pál kornelpal at hotmail.com
Fri Mar 17 13:29:59 EST 2006


> From: "Atsushi Eno" <atsushi at ximian.com>
> Cool, thanks Kornél. Can you please commit the patch with a few
> coding style fixes?
>
> foo [i] instead of foo[i]
> Blah () instead of Blah()
> (byte) x instead of (byte)x

As previously I followed the style of existing code I modified the style of
the entire code. In addition I moved UnicodeDecoder to the top of
UnicodeEncoding to have a more common style.

Previously I forgot to update UnicodeDecoder.GetChars but now it is updated
as well.

Lupus pointed out the problem with zero-length arrays so now it is fixed as
well.

Please have another look at the patch. Now I consider it to be complete.

Kornél
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnicodeEncoding.diff
Type: application/octet-stream
Size: 29793 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060317/f6bc584c/attachment.obj 


More information about the Mono-devel-list mailing list