[Mono-devel-list] Patch to speed up String

Andreas Nahr ClassDevelopment at A-SoftTech.com
Tue Sep 7 19:05:55 EDT 2004


Hi,

after some time I try again...
Here is the first patch to speed up the String class by making it managed 
where possible.

Please somebody test so that I can commit...

Here are some benchmark results for the exchanged methods (the nuber in () 
is the number of chars tested with)
All tests run with optimized=all
CopyTo (000): 810 -> 381
CopyTo (010): 832 -> 441
CopyTo (100): 1352 -> 881
CopyTo (512): 3395 -> 3014

ToCharArray (000): 5067 -> 4466
ToCharArray (002): 5317 -> 4857
ToCharArray (015): 8041 -> 7691
ToCharArray (960): 2915 -> 2894
ToCharArray (with parameters): Similar to above

Andreas 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PatchStringCopy.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040908/e27759c6/attachment.txt 


More information about the Mono-devel-list mailing list