[Mono-devel-list] Char.IsXXX() patch: from InternalCall to managed

Atsushi Eno atsushi at ximian.com
Wed Feb 18 01:18:15 EST 2004


Hello,

I found that existing Char.IsWhitespace() and Char.IsSeparator() are
slower than MS.NET. I found that they are InternalCall, so I tried to
implement them in Char.cs natively and the got 2x speed. So I think
it would be better if we move these (and the same kind of) methods
into managed world.

BTW, Char.IsWhiteSpace() and g_unichar_isspace() are different in
some characters such as vertical space ('\v').

If it does not matter, I'll commit the patch later.

Thanks,
Atsushi Eno

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: charperf.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040218/0883660f/attachment.pl 


More information about the Mono-devel-list mailing list