diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-28 13:07:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-28 13:07:03 +0000 |
commit | a155a23e88c446294ea9787e10ab7c04095501a1 (patch) | |
tree | 4806c6c63f646479a58fe68989fa1b6a2acbc2a6 /bin | |
parent | cb6a2bcde143f9324cba0506602d621de9f37c00 (diff) | |
download | portage-a155a23e88c446294ea9787e10ab7c04095501a1.tar.gz portage-a155a23e88c446294ea9787e10ab7c04095501a1.tar.bz2 portage-a155a23e88c446294ea9787e10ab7c04095501a1.zip |
Use a pickle to cache vdb metadata. This greatly improves the performance for loading the vdb when the buffer cache is cold.
svn path=/main/trunk/; revision=5402
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emerge | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge index 1b07d77bf..5d7406d1f 100755 --- a/bin/emerge +++ b/bin/emerge @@ -744,6 +744,7 @@ class FakeVartree(portage.vartree): continue slot_counters[myslot_atom] = mycounter self.dbapi.cpv_inject(cpv, metadata=metadata) + real_dbapi.flush_cache() finally: if vdb_lock: portage_locks.unlockdir(vdb_lock) |