Menu

#65 auth.tcl Auth_Check needless inefficiency

open
nobody
None
5
2004-09-20
2004-09-20
No

Auth_Check has to climb the path hierarchy from a
requested file, looking for .htaccess or .tclaccess
files and returning the lowest such file in the hierarchy.

Unfortunately, it does this by searching from the top
down, which incurs unnecessary directory searches.

We have a Doc_GetPath proc which will generate the
appropriate path list, which could then be traversed
bottom-up, saving expensive directory globs in many cases.

I propose to modify auth.tcl to perform the more
efficient search.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB