diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-23 15:22:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-23 15:22:21 +0000 |
commit | 2b35cecf47fa383d8ec0f113196a34c63f63183a (patch) | |
tree | 9c5900d4aae339e856314dda259fe0bcddbd5aea /Rpmdrake/gui.pm | |
parent | 5a19508fadf2d7c6f83a9a983f4801fc7570f59d (diff) | |
download | rpmdrake-2b35cecf47fa383d8ec0f113196a34c63f63183a.tar rpmdrake-2b35cecf47fa383d8ec0f113196a34c63f63183a.tar.gz rpmdrake-2b35cecf47fa383d8ec0f113196a34c63f63183a.tar.bz2 rpmdrake-2b35cecf47fa383d8ec0f113196a34c63f63183a.tar.xz rpmdrake-2b35cecf47fa383d8ec0f113196a34c63f63183a.zip |
(get_pkgs,get_summary) slightly reduce memory usage by not keeping around
summaries (2.1% of resident memory saved on std x86_64 media config)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 3f0ac5e7..40334a42 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -100,6 +100,7 @@ sub compute_main_window_size { sub get_summary { my ($key) = @_; + $pkgs->{$key}{summary} ||= $pkgs->{$key}{pkg}->summary; my $summary = translate($pkgs->{$key}{summary}); utf8::valid($summary) ? $summary : (); } |