Potentially, yes, depending on how well your OS handles this, and how often the script is called and so on.
Under linux, with reasonable amounts of RAM, and assuming that the script is called frequently enough for the OS not to re-use the buffers, after the first hit (that maps the file) I'd expect there to be very little disk i/o (if any) when reading that file. --Wez. On 08/14/02, "Andrey Hristov" <[EMAIL PROTECTED]> wrote: > > > > Once you've eliminated that problem, I'd suggest that you > > use readfile() instead of manually looping; readfile should > > be much kinder to your hardware as it uses mmap, which means > > that PHP doesn't need to keep allocating small buffers in the loop, > > and that the OS can potentially share the mapped memory between > > clients (which makes a lot of sense for you!). > > > Does this mean that if I readfile() a file in one script and after it's end > the same script is invoked it will read from the memory instead of disk i/o? > > Andrey -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php