From 60f38818f2dbc76e20041cf1b01e2baf3322a1f1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Feb 2017 00:41:29 +0000 Subject: repo: lazily read description and cloneurl This improves startup speed at the cost of CoW-friendliness for long-lived daemons (which can be fixed, later). --- lib/PublicInbox/RepoRoot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/RepoRoot.pm') diff --git a/lib/PublicInbox/RepoRoot.pm b/lib/PublicInbox/RepoRoot.pm index 9ab25b97..c04c23c5 100644 --- a/lib/PublicInbox/RepoRoot.pm +++ b/lib/PublicInbox/RepoRoot.pm @@ -46,7 +46,7 @@ sub repobrowse_index { my $l = $p->as_html; $p = $p->as_path; $fh->write(qq($l) . - " $r->{desc_html}"); + ' '.$r->desc_html.''); } foreach my $group (keys %$groups) { @@ -61,7 +61,7 @@ sub repobrowse_index { $p = $p->as_path; $fh->write(' ' . qq($l) . - " $r->{desc_html}"); + ' '.$r->desc_html.''); } } -- cgit v1.2.3-24-ge0c7