>>>> "Ben" == Ben Wing <ben(a)666.com>
writes:
Ben> Well, in that case my strategy would require only a single stat, not a stat
Ben> of each directory. I was assuming you had to stat each file of each
Ben> directory to see if it was a subdirectory.
No. We used to do that very early in the game, but no longer. The
relevant definitions that control this aspect of path searching are
these:
(defvar packages-hierarchy-depth 1
"Depth of package hierarchies.")
(defvar packages-load-path-depth 1
"Depth of load-path search in package hierarchies.")
(defvar packages-data-path-depth 1
"Depth of data-path search in package hierarchies.")
Ben> Btw I just did an strace under Cygwin and found some interesting things.
Ben> Unfortunately the results appear skewed; could some people under Unix run
Ben> strace (trace, truss, etc.) and send me the results? [...]
Yes---these are all stats where we would benefit from getting rid of
them. But they're all below the level of the path searching.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla