Useful code or premature optimization??

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
Hi all:

The compression code seems to be working ok. I have support for

  gzip, brotli and zstd

on the fly compression working.

I also have precompressed file support for these methods working.  The
precompressed support stat(2)'s files on every request.  I wonder if
it is a good idea to cache the results of the stat call to speed up
the code? In theory it is sound.

Caching will not work in cgi mode. I am not sure that this will work
with roundup-server in forking mode. I think the cache will start as
empty after the fork (since only child precesses will do the
stat). However I think it should work with wsgi or other persistent
methods.

Thoughts?

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.