aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-23 15:22:21 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-23 15:22:21 +0000
commit2b35cecf47fa383d8ec0f113196a34c63f63183a (patch)
tree9c5900d4aae339e856314dda259fe0bcddbd5aea /Rpmdrake/gui.pm
parent5a19508fadf2d7c6f83a9a983f4801fc7570f59d (diff)
downloadrpmdrake-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.pm1
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 : ();
}