XChart icon indicating copy to clipboard operation
XChart copied to clipboard

Optimize BitmapEncoder class

Open bg9999 opened this issue 2 years ago • 1 comments

Is there a way to optimize the methods of the BitmapEncoder class? They are extremely costly; a graph with 50k points takes over 2 seconds to save when calling saveBitmap(List<T>). getBufferedImage and saveBitMap( toStream ) are even more costly.

bg9999 avatar Feb 25 '22 15:02 bg9999

Size and Timing Info

207852 is the size in bytes of the graph 10811 is the size in bytes of the empty graph Runtime of saving the filled graph takes anywhere from 2-2.959 seconds on my machine Runtime of saving the empty graph takes .20 seconds on my machine

bg9999 avatar Feb 25 '22 15:02 bg9999