[Mono-bugs] [Bug 445130] New: TreeView ExpandAll() is very slow
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 14 10:10:20 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: alisdair_little at yahoo.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list