[Mono-bugs] [Bug 551156] New: String.EndsWith is very slow
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 29 16:27:37 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=551156
Summary: String.EndsWith is very slow
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tedu at fogcreek.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=324748)
--> (http://bugzilla.novell.com/attachment.cgi?id=324748)
demonstration of slow endswith
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12)
Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12
The mono implementation of String.EndsWith is very slow compared to other
string functions like StartsWith, 10 times slower.
Attached testcase demonstrates the problem when run on Windows and with mono.
Please note, I'm not talking about the relative performance difference between
MS and mono, just the relative difference in performance for these two
functions on mono.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
testing EndsWith...
done
00:00:09.9103340
testing StartsWith...
done
00:00:01.8466830
testing EndsWith...
done
00:00:09.7243590
testing StartsWith...
done
00:00:01.7808640
testing EndsWith...
done
00:00:09.7318400
testing StartsWith...
done
00:00:01.8223790
Expected Results:
On Windows:
testing EndsWith...
done
00:00:00.1249992
testing StartsWith...
done
00:00:00.1406241
testing EndsWith...
done
00:00:00.1249992
testing StartsWith...
done
00:00:00.1406241
testing EndsWith...
done
00:00:00.1249992
testing StartsWith...
done
00:00:00.1406241
--
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