annotate src/dumper.h @ 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 223736d75acb
children 034a2ddf5b6b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
1 /* Portable data dumper for XEmacs.
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
2 Copyright (C) 1999-2000 Olivier Galibert
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
3
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
4 This file is part of XEmacs.
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
5
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
9 later version.
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
10
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
14 for more details.
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
15
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
20
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
22
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
23 #ifndef INCLUDED_dumper_h
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
24 #define INCLUDED_dumper_h
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
25
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
26 void pdump_objects_unmark (void);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
27 void pdump (void);
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
28 int pdump_load (const char *argv0);
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 404
diff changeset
29 extern unsigned int dump_id;
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
30
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents:
diff changeset
31 #endif /* INCLUDED_dumper_h */