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

Posted by Erik Kullberg on 09/26/07 10:34

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

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