PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.php > Sluggish GD plotting
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Sluggish GD plotting

Réponse
 
LinkBack Outils de la discussion
Vieux 26/09/2007, 11h34   #1
Erik Kullberg
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sluggish GD plotting

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


  Réponse avec citation
Vieux 26/09/2007, 15h52   #2
Erik Kullberg
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sluggish GD plotting

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
>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h40.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07211 seconds with 10 queries