Re: cb_filestat patch
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm getting ready to start classes again tomorrow. That's why I haven't gotten to any of the patches and other thoughts sent to the list in the last week or so. I will get to them, though. Hopefully this weekend. The format is perfect--explanation with an attached patch file. That helps a lot. This one is definitely a good one as it fixes an oops that I wrote way back when. Whoops. /will On Tue, 5 Sep 2006, Ryan Barrett wrote: > > hi again. i'm attaching a proposed patch to tools.filestat that changes > the way the cb_filestat callback is handled. > > currently, cb_filestat is intended to let plugins override the mtime > returned from os.stat(). however, those plugins are often also in the > position to provide a cheaper alternative to os.stat() altogether. > > hardcodedates is a good example; it stores all mtimes in a single file. > in the case of large pyblosxom sites, reading that file once is *much* > faster and cheaper than statting hundreds, possibly thousands of > separate entry files. > > this patch changes tools.filestat to let plugins provide a stat value > first. it only falls back to os.stat() if no plugin provides a value. > > -Ryan ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642