On Jan 21, 2005, at 10:22 AM, Sean Davis wrote:
Do these need to all be generated on-the-fly? Or is there a way to create them first (one time a day, for example) and serve them as static images?
They need to be generated on-the-fly, as the data changes continually.
You could also have your main script generate the images all at once (at the same time as you are generating the HTML), put the graphics in temp files, and then put the appropriate URLs in the img tags. This will eliminate the overhead of calling a helper script 9-25 times for a single page. If you are on an intranet, serving 25 small images should be almost instantaneous.
Yeah, though then I have to worry about cleaning up the temp directory, and I'd like to avoid unnecessary writes to the hard drive (to avoid directory damage possibilities, energy use, fragmentation, etc). It logically makes sense to just send these things out as they're generated.
-- Chad A Gard [EMAIL PROTECTED]
Miller Brooks, Inc. 11712 N. Michigan Rd Zionsville, IN 46077 USA 317.873.8100 (phone) 317.873.8110 (fax)
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>