Community
Participate
Working Groups
See project: org.eclipse.swt.tests class: org.eclipse.swt.tests.junit.performance.Test_org_eclipse_swt_widgets_Control method: test_setBackgroundLorg_eclipse_swt_graphics_Color The number of test runs in the first line of this method is much smaller on GTK because it was taking far too long to run with the original (non-GTK) iteration count. With this original count (2000000), the test was taking > 51 minutes to run on gtk, while it took < 2 seconds to run on win32. My win32 machine is a little faster than my linux machine, but not by much.
Note: This was done more specifically on a Button.
This comparison is invalid. Windows is deferring the colour lookup until a paint occurs, while on GTK+ we set the colour in the OS and update the style.