[Mono-bugs] [Bug 78371][Nor] Changed - StatusBar drawing/updating is slow as hell

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 14 15:37:58 EDT 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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78371

--- shadow/78371	2006-05-14 08:10:19.000000000 -0400
+++ shadow/78371.tmp.27238	2006-05-14 15:37:58.000000000 -0400
@@ -67,6 +67,21 @@
 Time to run the statusbar test dropped down from 20 seconds to about 6
 seconds on my system.
 
 There is a little bit room to improve it even more: Currently the size
 grip gets redrawn everytime. It should be drawn only if the statusbar
 gets resized !?!
+
+------- Additional Comments From miguel at ximian.com  2006-05-14 15:37 -------
+Also currently the draw panel routines repaint both the icon and the
+text;  It should instead call Intersect and see if it needs to repaint
+one or the other (and the code that invalidates the panel should
+really invalidate only the specific piece that changed, not all of it).
+
+I do not think we need a major refactoring of the code, just careful
+invalidates and computations should be enough.
+
+In addition, I think we need to keep a Rectangle with the bounds
+maintained in each Panel, this would elmininate the constructor call
+to compute intersections on every call.  And since we are likely only
+going to have a handful of panels, this price is worth paying.
+


More information about the mono-bugs mailing list