Quick and dirty: Is it possible to let php send each output back to the browser immediately? Right now when I run it it seems to either wait for different tranches to be filled or for the script to be completely executed.
If so, does it compromise performance?
You can use flush()
, but whether it'll do anything is up to other parts of your stack - web server, any caching servers, etc.