Skip to main content

fillRect extremely slow on OS X JDK 7u4 and u6b12

4 replies [Last post]
mikaelgrev
Offline
Joined: 2006-09-27
Points: 0

Do you guys know this or is this something local to my setup?

Basically fillRect ends up in the profiler taking more time than anything else in my app. I haven't investigated further since I thought this must be known, but maybe it isn't?

In Java 6 it wasn't even noticeable in the profiler and I haven't changed anything in the app.

I have a dual monitor setup btw, on a 4 core Mac Pro 2009.

Cheers,
Mikael Grev

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24
Points: 0

Please file a bug at http://bugs.sun.com/

mikaelgrev
Offline
Joined: 2006-09-27
Points: 0

Aha. I guess the answer to the question is "No, it's not a known problem".

mikaelgrev
Offline
Joined: 2006-09-27
Points: 0

FYI. I had extended Paint to return the context from a GradientPaint. This has been as fast as GradientPaint up until Java 7 but now it's some 100 times slower. Guess some new optimization made this case really expensive.

My version basically scaled the GradientPaint to the size of the paint operation so I could make the gradient paint for instance always cover a full fillRect without recreating it explicitly.

Cheers,
Mikael

mikaelgrev
Offline
Joined: 2006-09-27
Points: 0

double post. removed.