-
Enhancement
-
Resolution: Fixed
-
P3
-
8
The attached test shows that Canvas initialization using PixelWriter can be very slow.
The problem is with the underlying GrowableDataBuffer, which grows with small increment of just 1K and copies the entire buffer on each size increase. Practically all time is spent in Arrays.copyOf() and GC.
The problem is with the underlying GrowableDataBuffer, which grows with small increment of just 1K and copies the entire buffer on each size increase. Practically all time is spent in Arrays.copyOf() and GC.
- duplicates
-
JDK-8093174 [Canvas] IllegalStateException when using PixelWriter.setColor
- Closed