Any comment about below Performance tunning idea?

0 views
Skip to first unread message

Carfield Yim

unread,
Nov 26, 2009, 12:52:32 AM11/26/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
We have a form calling

List.contains()

a lot of the time to check if the user have permission to view / amend
difference fields. The visibility checking process is somehow complex
and it is not easy to simpify, but according to the benefit result,
this is the bottleneck that form.

I just wonder, can we using sortedlist.contain() can improve this part
by N to log N?

Cerebrus

unread,
Nov 26, 2009, 12:29:30 PM11/26/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Maybe the EqualityComparer is taking time ? You haven't told us what
the "List contains" !

SortedList is very slow during adding/removing items because the
entire list is resorted (in addition to checking for uniques), but
better duing searches.
Reply all
Reply to author
Forward
0 new messages