cb_walk() callback?

Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
hi again. last email from me for today. :P

i like the cb_filestat callback, which lets plugins handle stat() calls. it
allows for new functionality, since they can provide their own value, as well
as optimization, since they can implement a persistent cache.

in a similar vein, i wonder if plugins should be able to handle tools.Walk().
they could use this decide which files are appropriate, based on their own
criteria. it would also allow for optimization, since walking directory
structures is really expensive.

of course, cb_walk would overlap substantially with cb_filelist. cb_walk might
be easier and cleaner in some ways, but it would also be less powerful. even
disregarding backwards compatibility (heh), i don't see cb_filelist going
away, and the overlap would be (mostly) unnecessary complexity.

still, i'm sorely tempted by optimization. i've only investigated a little,
but it looks like tools.Walk() is my installation's biggest overhead, by far.
worse, on sites with many entries, like mine, almost all of that overhead is
unnecessary.

-Ryan

--
http://snarfed.org/

-------------------------------------------------------------------------
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
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.