in reply to Re^2: endless loop problems
in thread endless loop problems
I don't understand what you are trying to say in the first two paragraphs. (Yes, the debug statements would have worked with $| = 1. Yes, it would have worked by replacing $pics_found with @found_images. Just like I said in my post.)
If your point is that you're taking exception to me cleaning up the code, keep in mind that good code is readable and maintainable code. The excess of redundancy and the poor choice of variable names in the original code affected both readability and maintainability.
would it not be better for the server in terms of CPU and memory if the images were downloaded into a temp directory and sized locally rather than read from memory?
The CPU usage would be (slightly) higher, since we'd have extra code to write to the disk and read from the disk.
Yes, the memory usage could be smaller (depending on how we write to and read from the disk) by something less than the size of one image.
And of course, it would be slower because we'd have to do all the work we currenlty do, plus more.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: endless loop problems
by coldfingertips (Pilgrim) on Jun 28, 2006 at 16:33 UTC | |
by ikegami (Patriarch) on Jun 28, 2006 at 16:46 UTC |