diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-07-19 22:02:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-07-19 22:02:00 +0000 |
commit | 07a9cfb93ad567b16baae38c4fe2f3ea4e2f4e9b (patch) | |
tree | 4ae6498204fc3e4cc3dc52dc9f9e24c1095a3ffc /pym/portage/cache/flat_hash.py | |
parent | 023d296efc7f1160366c039cc02aff04623e9867 (diff) | |
download | portage-07a9cfb93ad567b16baae38c4fe2f3ea4e2f4e9b.tar.gz portage-07a9cfb93ad567b16baae38c4fe2f3ea4e2f4e9b.tar.bz2 portage-07a9cfb93ad567b16baae38c4fe2f3ea4e2f4e9b.zip |
Use readlines() to optimize performance. Thanks to Marat Radchenko
<slonopotamusorama@gmail.com> for this patch from bug #276813.
svn path=/main/trunk/; revision=13834
Diffstat (limited to 'pym/portage/cache/flat_hash.py')
-rw-r--r-- | pym/portage/cache/flat_hash.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py index 71ddf6023..c3c5955fb 100644 --- a/pym/portage/cache/flat_hash.py +++ b/pym/portage/cache/flat_hash.py @@ -29,7 +29,7 @@ class database(fs_template.FsBased): try: myf = codecs.open(fp, mode='r', encoding='utf_8', errors='replace') try: - d = self._parse_data(myf, cpv) + d = self._parse_data(myf.readlines(), cpv) if '_mtime_' not in d: # Backward compatibility with old cache # that uses mtime mangling. |