pChart 2.x forum http://wiki.pchart.net/forum/ |
|
Quite Long Load Time http://wiki.pchart.net/forum/viewtopic.php?f=3&t=2208 |
Page 1 of 1 |
Author: | Alise [ Fri Oct 14, 2011 11:56 am ] |
Post subject: | Quite Long Load Time |
Hey! I've just downloaded pChart and created my first radar graph. I'm extremely impressed and I'll most likely implement it on my web page (and of course pay you guys a well deserved donation). However, I have one concern. When I load the image in my browser, there's a roughly two second delay (waiting for server...) Why is that? Is it very cpu intensive? Is there a way to reduce the wait, like in increasing the step size in some iteration or something? |
Author: | Alise [ Mon Oct 17, 2011 12:59 pm ] |
Post subject: | Re: Quite Long Load Time |
I've turned off antialisasing in the beginning and turn it on again just before the final image is rendered. $myPicture = new pImage(400,400,$MyData); $myPicture->Antialias=false; $myPicture->Antialias=true; $SplitChart->drawRadar($myPicture,$MyData,$Options); This helps a little bit, but not much. I only input five arrays, each with three floating point values. So there shouldn't bee too much data either. I'm using Hostgator VPS. Any advice is highly appreciated |
Author: | Niii [ Fri Nov 11, 2011 4:19 pm ] |
Post subject: | Re: Quite Long Load Time |
Hi, Same for me, on a cpu 1ghz, I need 2.5 seconds to generate (not for load from the web page) a 900x400 graph. Cause is GD library who needs cpu time for generate image. If you make a little debug, all waste of time is by GD functions used in pchart class. |
Author: | Alise [ Sun Nov 20, 2011 7:19 pm ] |
Post subject: | Re: Quite Long Load Time |
Tnx for sharing this Do you know which changes I can make to the library for the load time to decrease? |
Author: | Niii [ Sun Nov 20, 2011 8:16 pm ] |
Post subject: | Re: Quite Long Load Time |
No idea. And a web search give me no results. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |