You are here: Re: Sluggish GD plotting « All PHP « IT news, forums, messages
Re: Sluggish GD plotting

Posted by Erik Kullberg on 09/26/07 14:52

I have made a more thorough check of run times and found that
GD is innocent!
12 runs gave an average total run time of 156 sec, min value 6 sec, max
value 368 sec.
The part time for GD was <1 sec in all cases!

The same run takes a total of 3 sec locally.

/ Erik


"Erik Kullberg" <erik.kullberg@telia.com> skrev i meddelandet
news:_AqKi.9730$ZA.5583@newsb.telia.net...
>I have a technical simulation program, written in PHP. The result of the
>simulation is presented in shape of time history diagrams on the screen.
>
> The program first calculates everything and stores the result in a double
> indexed array, one row per time frame, one column per variable. This array
> is then input to a plot function, which creates the diagrams by use of
> GD2.
>
> In my local environment a certain run with this program takes about 5 sec.
> On the internet server (a web hotel) the same run sometimes takes 3 min.
> or more! Sometimes the result diagrams are not delivered at all.
>
> I can conclude that the calculations are always completed, also in cases
> when there is no output diagams, so one might suspect that the trouble is
> connected to the plotting.
>
> Is GD working in a memory compartment of its own, the size of which is too
> little on that server?
>
> Suggestions?
>
> / Erik
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация