in reply to Re: Re: request criticism web page with images in dir (File::Find File::Spec File::glob)
in thread request criticism web page with images in dir (File::Find File::Spec)

I suspect that my code is I/O rather than CPU bound. Eleminating the unneeded map operation seemed to drop a wallclock second off the runtime. Moving from a 330Mhz PC w/ IDE drives to a 200Mhz with SCSI drives dropped another wallclock second.

I think I could probabably eek out at least a few precious milliseconds by implimenting your suggestions, but if I really were concerned about speed I'd probably do more detailed benchmarking and look for the bottlenecks....

Since my site gets maybe 20 vistitors on a busy day and I'm moving to a database backed approach and I need to spend time on other things (sigh).....

btw, I'm not sure C is a speed win, even purely in terms of execution time. Programmer skill is much more highly corrilated with speed than language choice. (see paper by Lutz Prechelt

Thanks again for all your help.



--mandog

  • Comment on Re: request criticism web page with images in dir (File::Find File::Spec File::glob)