From: Andrea A. <aa...@op...> - 2007-02-11 22:53:30
|
Andrea Aime ha scritto: > History goes on, > fixed the two above, rendering time is down to 40 seconds > on java 1.4 and 6 seconds on java 1.5, which makes me think > we're allocating too many objects ... investigating... Oh well, I don't really know how to improve it more by quick tricks, some deeper thougth is needed here. What I can see, is that the worst offenders now are Class.isInstance(xxx) in the Value class, Class.isAssignableFrom in SimpleFeaturePropertyAccessorFactory, and the two togher sum up to twice the time spent actually drawing with SunGraphics2D.draw (this is horrible). An interesting note is that the same rendering code you can get on the user mailing list now takes: * 24 seconds on jdk 1.4 * 5.2 seconds on jdk 1.5 * 3.8 seconds on jdk 1.6 Well, at least Sun is helping here :-) Cheers Andrea |