BubbleChart & Performance

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
fse
Posts: 25
Joined: Thu Mar 27, 2003 9:21 am
Location: cologne, germany
Contact:

BubbleChart & Performance

Post by fse » Mon Nov 17, 2003 5:28 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Nov 18, 2003 6:44 pm

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

fse
Posts: 25
Joined: Thu Mar 27, 2003 9:21 am
Location: cologne, germany
Contact:

it becomes still worse

Post by fse » Tue Nov 25, 2003 3:46 pm

now my servertask crashes
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");
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? :-/

fse
Posts: 25
Joined: Thu Mar 27, 2003 9:21 am
Location: cologne, germany
Contact:

i found out more ...

Post by fse » Thu Dec 04, 2003 1:51 pm

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 :idea:
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...

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Dec 04, 2003 6:49 pm

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked