[Mono-bugs] [Bug 502484] New: Managed version of String.Split() method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 9 01:54:52 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=502484


           Summary: Managed version of String.Split() method
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: phil at thinkedge.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=291142)
 --> (http://bugzilla.novell.com/attachment.cgi?id=291142)
Patch file for String.cs

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0;
Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2;
NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618;
OfficeLiveConnector.1.3; OfficeLivePatch.0.0)

The attached patch replaces the unmanaged version of the String.InternalSplit()
method with a managed implementation. This is a direct port from the existing C
code to C#. I tested this against the 2.0 and 1.1 profiles and there were no
regressions. This patch is contributed under the X11 license.

Also attached is a copy of the benchmark program. It's runs most of the
existing test cases for the Split method in a loop a million times. 

The results between the managed and unmanaged versions are statistically the
same. The managed version seems to be slightly faster by 1.4% (in my virtual
environment). The unmanaged version was never faster than the managed version
in all the benchmark runs. 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
Managed version of String.Split().

Expected Results:  
Managed version of String.Split().

This is not a bug, this is an enhancement.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list