|
Posted by Alexander Fischer on 10/06/06 21:25
Hi Andy!
> You'd expect the final output part to be somewhat slower than serving a file
> out directly, but no slower than any other large output from PHP - which can
> still serve out data quite quickly.
>
> Is all large-ish output from PHP on your server slow? What about compared with
> serving static files from the same server?
I don't think that all PHP output is slow. Well, I don't know - can't
really compare. When I directly serve the image file, i.e. <img
src="picture.jpg">, it's there in an instant. Same when I use phpThumb
<img src=phpThumb.php?src=picture.jpg>. I'm talking about a 800x600
image, so no huge sizes there. When I output it with my PHP code, which
is serving some header data and than fpassthru, it takes about half a
second for the whole image to appear, and it comes line-by-line, which
is noticeable and annoying.
> The GD library has an interlacing option, which (according to the docs anyway)
> for JPEG it actually interprets as using progressive mode - look up
> imageinterlace().
Will do. Any other ideas how I could find out whether my server is too
slow, my code sucks, or whatever else is the problem here?
Thanks,
Alex
Navigation:
[Reply to this message]
|