diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-26 12:52:13 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-26 12:52:13 +0300 |
commit | 9a3f590e32af04e121da4004b9013e6dca1de5d0 (patch) | |
tree | cfd97c47d9b5e485d558976aacb3e7085b5e6355 /build | |
parent | 50983815f090262dd782df07a8827b290bacfcdb (diff) | |
download | librpm-tizen-9a3f590e32af04e121da4004b9013e6dca1de5d0.tar.gz librpm-tizen-9a3f590e32af04e121da4004b9013e6dca1de5d0.tar.bz2 librpm-tizen-9a3f590e32af04e121da4004b9013e6dca1de5d0.zip |
Freeze the rpmfc string pools once all additions are done
- Memory use isn't typically that critical during build, but saving
a little bit of it doesn't hurt anyway...
Diffstat (limited to 'build')
-rw-r--r-- | build/rpmfc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c index 7de2da177..990abab98 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -816,6 +816,8 @@ rpmRC rpmfcApply(rpmfc fc) rpmfcHelperRequires(fc, *fattr); } } + /* No more additions after this, freeze pool to minimize memory use */ + rpmstrPoolFreeze(fc->ddict, 0); /* Generate per-file indices into package dependencies. */ nddict = rpmstrPoolNumStr(fc->ddict); @@ -1019,6 +1021,8 @@ rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode) rc = RPMRC_OK; exit: + /* No more additions after this, freeze pool to minimize memory use */ + rpmstrPoolFreeze(fc->cdict, 0); if (ms != NULL) magic_close(ms); |