Re: Package caching
Michael Sperber <[email protected]> Sun, 12 Dec 2004 15:34:17 +0100
| Newsgroups | gmane.emacs.xemacs.design |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Ben" == Ben Wing <[email protected]> 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