Mercurial > hg > xemacs-beta
comparison lisp/ChangeLog @ 1298:1b4bc72f433e
[xemacs-hg @ 2003-02-14 12:05:06 by ben]
speedups to build process
autoload.el: Factor out common code in generate-{c-,}file-autoloads-1 into new
function generate-autoload-ish-1. \(I was originally going to use
this for custom as well but ended up thinking better of it.)
cus-dep.el: Cache the old computed values in custom-load.el and reuse them as
necessary, to speed up running cus-dep (which would take 25-30
seconds to do all files in lisp/*, lisp/*/* on my Pentium III
700). Use `message' not `princ' to get correct newline behavior.
Output messages showing each file we do actually process.
update-elc-2.el: Rewrite algorithm to be much faster -- cache calls to
directory-files and don't make needless calls to file-exists-p,
file-directory-p because they're way way slow.
Autoload early and only when update-elc has told us to.
update-elc.el: If no files need byte compilation, signal to update-elc-2 to do
any necessary autoload updating (using the file REBUILD_AUTOLOADS)
rather than doing it ourselves, which would be way slow. Ignore
updates to custom-load.el and auto-autoloads.el when checking to
see whether autoloads need updating. Optimize out many
unnecessary calls to file-exists-p to speed it up somewhat. (####
The remaining time is 50% or more in locate-file; this is
presumably because, even though it has a cache, it's still
statting each file to determine it's actually there. By calling
directory-files ourselves, building a tree, and then looking in
that tree, we could drastically shorten the time needed to do the
locate operation.)
author | ben |
---|---|
date | Fri, 14 Feb 2003 12:05:07 +0000 |
parents | 6c21360a544b |
children | 781dc6d5baba |
comparison
equal
deleted
inserted
replaced
1297:6c21360a544b | 1298:1b4bc72f433e |
---|---|
15 * autoload.el: | 15 * autoload.el: |
16 * autoload.el (generate-file-autoloads): | 16 * autoload.el (generate-file-autoloads): |
17 * autoload.el (generate-autoload-ish-1): | 17 * autoload.el (generate-autoload-ish-1): |
18 * autoload.el (generate-file-autoloads-1): | 18 * autoload.el (generate-file-autoloads-1): |
19 * autoload.el (generate-c-file-autoloads-1): | 19 * autoload.el (generate-c-file-autoloads-1): |
20 * byte-optimize.el: | 20 Factor out common code in generate-{c-,}file-autoloads-1 into new |
21 * byte-optimize.el (byte-compile-inline-expand): | 21 function generate-autoload-ish-1. \(I was originally going to use |
22 * byte-optimize.el (byte-compile-unfold-lambda): | 22 this for custom as well but ended up thinking better of it.) |
23 * byte-optimize.el (byte-optimize-form-code-walker): | 23 |
24 * byte-optimize.el (byte-optimize-form): | |
25 * byte-optimize.el (byte-decompile-bytecode-1): | |
26 * byte-optimize.el (byte-optimize-lapcode): | |
27 * cus-dep.el: | 24 * cus-dep.el: |
28 * cus-dep.el (cusload-hash-table-marker): New. | 25 * cus-dep.el (cusload-hash-table-marker): New. |
29 * cus-dep.el (Custom-make-dependencies-1): | 26 * cus-dep.el (Custom-make-dependencies-1): |
27 Cache the old computed values in custom-load.el and reuse them as | |
28 necessary, to speed up running cus-dep (which would take 25-30 | |
29 seconds to do all files in lisp/*, lisp/*/* on my Pentium III | |
30 700). Use `message' not `princ' to get correct newline behavior. | |
31 Output messages showing each file we do actually process. | |
32 | |
30 * update-elc-2.el: | 33 * update-elc-2.el: |
31 * update-elc-2.el (dirfiles-table): New. | 34 * update-elc-2.el (dirfiles-table): New. |
32 * update-elc-2.el (do-update-elc-2): | 35 * update-elc-2.el (do-update-elc-2): |
33 * update-elc-2.el (batch-update-elc-2): | 36 * update-elc-2.el (batch-update-elc-2): |
37 Rewrite algorithm to be much faster -- cache calls to | |
38 directory-files and don't make needless calls to file-exists-p, | |
39 file-directory-p because they're way way slow. | |
40 Autoload early and only when update-elc has told us to. | |
41 | |
34 * update-elc.el: | 42 * update-elc.el: |
35 * update-elc.el (dumped-exe): Removed. | 43 * update-elc.el (dumped-exe): Removed. |
36 * update-elc.el (dumped-exe-out-of-date-wrt-undumped-exe): Removed. | 44 * update-elc.el (dumped-exe-out-of-date-wrt-undumped-exe): Removed. |
37 * update-elc.el (lisp-files-ignored-when-checking-for-autoload-updating): New. | 45 * update-elc.el (lisp-files-ignored-when-checking-for-autoload-updating): New. |
38 * update-elc.el ((preloaded-file-list site-load-packages files-to-process)): | 46 * update-elc.el ((preloaded-file-list site-load-packages files-to-process)): |
39 | 47 If no files need byte compilation, signal to update-elc-2 to do |
40 2003-02-11 Ben Wing <ben@xemacs.org> | 48 any necessary autoload updating (using the file REBUILD_AUTOLOADS) |
41 | 49 rather than doing it ourselves, which would be way slow. Ignore |
42 * byte-optimize.el: | 50 updates to custom-load.el and auto-autoloads.el when checking to |
43 * byte-optimize.el (byte-compile-inline-expand): | 51 see whether autoloads need updating. Optimize out many |
44 * byte-optimize.el (byte-compile-unfold-lambda): | 52 unnecessary calls to file-exists-p to speed it up somewhat. (#### |
45 * byte-optimize.el (byte-optimize-form-code-walker): | 53 The remaining time is 50% or more in locate-file; this is |
46 * byte-optimize.el (byte-optimize-form): | 54 presumably because, even though it has a cache, it's still |
47 * byte-optimize.el (byte-decompile-bytecode-1): | 55 statting each file to determine it's actually there. By calling |
48 * byte-optimize.el (byte-optimize-lapcode): | 56 directory-files ourselves, building a tree, and then looking in |
57 that tree, we could drastically shorten the time needed to do the | |
58 locate operation.) | |
49 | 59 |
50 * update-elc-2.el: | |
51 * update-elc-2.el (dirfiles-table): New. | |
52 * update-elc-2.el (dolist): New. | |
53 * update-elc-2.el (do-update-elc-2): | |
54 * update-elc-2.el (batch-update-elc-2): | |
55 Rewrite algorithm to be much faster -- cache calls to | |
56 directory-files and don't make needless calls to file-exists-p, | |
57 file-directory-p because they're way way slow. | |
58 | |
59 Autoload early and only when update-elc has told us to. | |
60 | |
61 * update-elc.el: | |
62 * update-elc.el (dumped-exe-exists): New. | |
63 * update-elc.el (lisp-files-ignored-when-checking-for-autoload-updating): New. | |
64 * update-elc.el ((preloaded-file-list site-load-packages files-to-process)): | |
65 If no files need byte compilation, signal to update-elc-2 to do | |
66 any necessary autoload updating rather than doing it ourselves, | |
67 which would be way slow. Ignore updates to custom-load.el and | |
68 auto-autoloads.el when checking to see whether autoloads need | |
69 updating. | |
70 | |
71 2003-02-12 Jerry James <james@xemacs.org> | 60 2003-02-12 Jerry James <james@xemacs.org> |
72 | 61 |
73 * about.el (about-url-alist): Add my home page. | 62 * about.el (about-url-alist): Add my home page. |
74 * about.el (about-personal-info): Flatter myself. | 63 * about.el (about-personal-info): Flatter myself. |
75 | 64 |