diff options
| author | Steven Knight <knight@baldmt.com> | 2004-05-01 19:12:23 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-05-01 19:12:23 (GMT) |
| commit | 28ad1a68eea6bb49178a9837a95bcba973ed015d (patch) | |
| tree | 2b352653ffda1d21dbdf1eee417a16eae66e2b4a /src/engine/SCons/Script | |
| parent | a293ba1834e12a50ec1f79c5aa746a182285f60f (diff) | |
| download | SCons-28ad1a68eea6bb49178a9837a95bcba973ed015d.zip SCons-28ad1a68eea6bb49178a9837a95bcba973ed015d.tar.gz SCons-28ad1a68eea6bb49178a9837a95bcba973ed015d.tar.bz2 | |
Performance improvement: memo-ize Node.FS string values when appropriate.
Diffstat (limited to 'src/engine/SCons/Script')
| -rw-r--r-- | src/engine/SCons/Script/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 245fea9..ee1ec81 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -963,6 +963,12 @@ def _main(args, parser): sys.exit(0) progress_display("scons: done reading SConscript files.") + # Tell the Node.FS subsystem that we're all done reading the + # SConscript files and calling Repository() and BuildDir() and the + # like, so it can go ahead and start memoizing the string values of + # file system nodes. + SCons.Node.FS.save_strings(1) + if not memory_stats is None: memory_stats.append(SCons.Debug.memory()) fs.chdir(fs.Top) |
