author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 7 Mar 2007 22:09:21 +0000 (17:09 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 7 Mar 2007 22:11:02 +0000 (17:11 -0500) | ||
commit | 93e72d8d8fbfbbf28abee82c3e769337d7b940ec | |
tree | c3f37f1085850b9e2ab15e648dba26e4e1a4382b | tree | snapshot |
parent | c390ae97beb9e8cdab159b593ea9659e8096c4db | commit | diff |
Preallocate memory earlier in fast-import
I'm about to teach fast-import how to reload the marks file created
by a prior session. The general approach that I want to use is to
immediately parse the marks file when the specific argument is found
in argv, thereby allowing the caller to supply multiple marks files,
as the mark space can be sparsely populated.
To make that work out we need to allocate our object tables before
we parse the command line options. Since none of these tables
depend on the command line options, we can easily relocate them.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
I'm about to teach fast-import how to reload the marks file created
by a prior session. The general approach that I want to use is to
immediately parse the marks file when the specific argument is found
in argv, thereby allowing the caller to supply multiple marks files,
as the mark space can be sparsely populated.
To make that work out we need to allocate our object tables before
we parse the command line options. Since none of these tables
depend on the command line options, we can easily relocate them.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c | diff | blob | history |