diff options
author | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2006-02-06 12:38:32 +0300 |
---|---|---|
committer | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2006-02-06 12:38:32 +0300 |
commit | 74e98048b80ba81d1b8fad0da50bc472eff58d3c (patch) | |
tree | abf41c2646329b4390c3731250511f57b0f1c469 /mcs/class/Novell.Directory.Ldap | |
parent | c47a86cc87dfbb942cf95ac6238c476e5a0a6dbe (diff) |
performance refactoring
svn path=/trunk/mcs/; revision=56578
Diffstat (limited to 'mcs/class/Novell.Directory.Ldap')
3 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ChangeLog b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ChangeLog index 51e2dff9148..4336397c95b 100644 --- a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ChangeLog +++ b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ChangeLog @@ -1,3 +1,7 @@ +2006-06-02 Konstantin Triger <kostat@mainsoft.com> + + * SchemaParser.cs, RespControlVector.cs: performance refactoring. + 2005-16-11 Eyal Alaluf <eyala@mainsoft.com> * RespExtensionSet.cs: Workaround for csc bug diff --git a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/RespControlVector.cs b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/RespControlVector.cs index 1732bd46d38..6096eaccdb2 100644 --- a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/RespControlVector.cs +++ b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/RespControlVector.cs @@ -102,7 +102,7 @@ namespace Novell.Directory.Ldap.Utilclass { /* Get next registered control */ - if ((ctl = (RegisteredControl) ToArray()[i]) == null) + if ((ctl = (RegisteredControl) this[i]) == null) { throw new System.FieldAccessException(); } diff --git a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/SchemaParser.cs b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/SchemaParser.cs index 39c6a173219..fa8293f71b2 100644 --- a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/SchemaParser.cs +++ b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/SchemaParser.cs @@ -68,7 +68,7 @@ namespace Novell.Directory.Ldap.Utilclass { get { - return new ArrayEnumeration(qualifiers.ToArray()); + return qualifiers.GetEnumerator(); } } |