hi,
i observed some strange performance differences between different charts.
bubblechart take 1 second per bubble and i am just measuring the writeBufferedImage.. method. the "same" set of data visualized with a combined stackedbar and lineandshapechart take 6% of that time. is there a turbo boost somewhere in the bubble chart?
tia frank
BubbleChart & Performance
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I haven't done much in the way of performance measurement or optimisation in JFreeChart, so I'm not sure why it is slower. From a quick revision of the code, I can't see any obvious reasons why it would be that much slower...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


it becomes still worse
now my servertask crashes
with an out of memory error
between these log lines
i know, i try to isolate this behavior in a single class,
but may be there is a way to just stop this method to grab so much memory? :-)
cu
frank
ps:
shown in a window, it only take much time but doesn't crash.
but my target is the visualization with tomcat.
ok, i'll try to give tomcat more heapsize but that can only be a temporarily solution. now i have 40 bubbles what happens with 100? :-/
with an out of memory error
between these log lines
Code: Select all
log.debug("...");
Date time = new Date();
ChartUtilities.writeBufferedImageAsPNG(out,getImage());
log.debug("time elapsed to write image "+(new Date().getTime()- time.getTime())+" millis");
but may be there is a way to just stop this method to grab so much memory? :-)
cu
frank
ps:
shown in a window, it only take much time but doesn't crash.
but my target is the visualization with tomcat.
ok, i'll try to give tomcat more heapsize but that can only be a temporarily solution. now i have 40 bubbles what happens with 100? :-/
i found out more ...
hi david,
the problem is the size of the matrix i use with the bubble chart.
a 30 x 30 matrix reduces significant the time and i think memory needed
is there a way to store the matrix more efficient
cu
frank
waiting for a hint where to let his radar plot
the problem is the size of the matrix i use with the bubble chart.

a 30 x 30 matrix reduces significant the time and i think memory needed

is there a way to store the matrix more efficient

cu
frank
waiting for a hint where to let his radar plot

david.gilbert wrote:I haven't done much in the way of performance measurement or optimisation in JFreeChart, so I'm not sure why it is slower. From a quick revision of the code, I can't see any obvious reasons why it would be that much slower...
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
To be honest I've not looked closely at that code. Fortunately, the XYBubbleRenderer only requires data from an XYZDataset (an interface), so you can replace the dataset implementation with your own class(es).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

