Perl: the Markov chain saw | |
PerlMonks |
Re^2: Perl modules (was: Re: Begginer's question: ...)by predrag (Scribe) |
on Jan 20, 2017 at 09:20 UTC ( [id://1179981]=note: print w/replies, xml ) | Need Help?? |
Hauke D I was thinking again about your post and hope that it is not a mistake to reply to your comments, even if we maybe go a little out of the topic. Traditional CGI scripts would get re-executed on every request to the web server, so start-up times on CGI scripts would make a difference, especially if they get many requests per minute. There are however more modern web servers in which the scripts keep running between requests, in which case the start-up times do not matter. Of course, if this is just a small web page on which you don't expect many requests, start-up times of the scripts may not matter much at all. Otherwise, it would be wise to consider ways to optimize, such as using one of the more modern implementations that keep the scripts running. Another approach might be to not re-generate the charts on every request, instead keeping them cached and only re-generating them when necessary, such as based on an interval or when the data changes. During last year, my website had about 400-1000 daily visits and with the new design and much of new content I expect more visits in the future. So, I should have all that in mind while working on my CGI scripts. I would like to realize web monitoring on my website, with data about bee hive weight, weather etc. It would be ideal if some or all of these data are presented visually, so this is why I asked a question about modules for plotting in Perl. From your comment I see that maybe your last suggestion is most appropriate for me ( not re-generate the charts on every request) because in the simpler version, data would changes probably two times a day. Pages with these data will be very attractive to visitors, so it can significantly increase web traffic. Anyway, when I have some results, I will ask perlmonks for comments regards
In Section
Seekers of Perl Wisdom
|
|