[Mono-bugs] [Bug 80075][Nor] Changed - bad performance problem with access of datarow column
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 28 11:54:35 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=80075
--- shadow/80075 2006-11-28 11:13:58.000000000 -0500
+++ shadow/80075.tmp.14459 2006-11-28 11:54:35.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 80075
Product: Mono: Class Libraries
Version: 1.2
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.Data
AssignedTo: mono-bugs at ximian.com
ReportedBy: informatique.internet at fiducial.fr
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -86,6 +86,31 @@
How often does this happen?
always
Additional Information:
+
+------- Additional Comments From informatique.internet at fiducial.fr 2006-11-28 11:54 -------
+The incriminated method is in DataColumnCollection :
+
+ private int IndexOf (string name, bool error)
+ {
+ int count = 0, match = -1;
+ for (int i = 0; i < List.Count; i++)
+ {
+ String name2 = ((DataColumn) List[i]).ColumnName;
+ if (String.Compare (name, name2, true) == 0)
+ {
+ if (String.Compare (name, name2, false) == 0)
+ return i;
+ match = i;
+ count++;
+ }
+ }
+ if (count == 1)
+ return match;
+ if (count > 1 && error)
+ throw new ArgumentException ("There is no match for the name in
+the same case and there are multiple matches in different case.");
+ return -1;
+ }
More information about the mono-bugs
mailing list