httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Tatarinov <tatar...@prairie.NoDak.edu>
Subject On avoiding stat()
Date Thu, 18 Dec 1997 20:26:28 GMT
Hi all!

As you might remember, I am trying to add a document cache to apache that
would (hopefully) decrease the number of I/Os and save some CPU cycles by
avoiding open/mmap/close

So I got a question: is there any way to avoid the stat() call. I know that
Apache needs to make it to mmap the file but if I already got the file in
the cache and know its size, there is no reason to stat() the file. Of
course, the file may have been updated but this happens not often and I
could probably check for "If-Modified-Since" and stat the file only if
reload was requested.

any ideas?

thanks,
igor

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Igor Tatarinov, graduate student, Computer Science Dept, NDSU
e-mail: tatarino@prairie.nodak.edu   or   itat@acm.org
http://www.cs.ndsu.nodak.edu/~tatarino
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mime
View raw message