https://bugzilla.novell.com/show_bug.cgi?id=445130
Summary: TreeView ExpandAll() is very slow
Product: Mono: Class Libraries
Version: 2.0
Platform: i586
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Description of Problem:
Using TreeView ExpandAll is very slow with large amounts of nodes, this is
despite wrapping the ExpandAll call in BeginUpdate and EndUpdate.
Doing ExpandAll without mono for 3272 nodes takes less than one second.
Under Mono - Windows XP & Linux Ubuntu: 42 Seconds
I am overriding DrawNode (no graphics, just colored text)
Steps to reproduce the problem:
1. Add a treeview to a form
2. Create a custom node draw method
2.1. This can be as simple as using e.Graphics.DrawString
3. Call treeview.BeginUpdate()
4. Add a large number of nodes
5. Call treeview.ExpandAll()
6. Call treeview.EndUpdate()
IMPORTANT
I tried removing BeginUpdate and EndUpdate and it took the same amount of time
(47 seconds). This does seem to point to these statements being ignored.
--
Configure bugmail: https://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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs