[OpenJDK 2D-Dev] AAShapePipe concurrency & memory waste
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Wed Apr 10 19:19:21 UTC 2013
Hi, Laurent.
I am not an expert here but just my 50 cents.
This optimization shall take place only if it is really hotspot. But if
it is a really hotspot - probably it would be better to remove these
array/object allocation at all and use plane bytes?
I see that some methods which take it as argument doesn't use them. And
most of the time we pass AATileGenerator and abox[] to the same methods,
so it could be merged?
Also I suggest to use jmh for java micrbenchmarks.
http://openjdk.java.net/projects/code-tools/jmh
So your test will be:
http://cr.openjdk.java.net/~serb/AAShapePipeBenchmark.java
--
Best regards, Sergey.
More information about the core-libs-dev
mailing list