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/RepoConfig.pm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/PublicInbox/RepoConfig.pm') diff --git a/lib/PublicInbox/RepoConfig.pm b/lib/PublicInbox/RepoConfig.pm index fb1fd584..e1e2860b 100644 --- a/lib/PublicInbox/RepoConfig.pm +++ b/lib/PublicInbox/RepoConfig.pm @@ -30,8 +30,6 @@ sub default_file { # Returns something like: # { # path => '/home/git/foo.git', -# description => 'foo repo', -# cloneurl => "git://example.com/foo.git\nhttp://example.com/foo.git", # publicinbox => '/home/pub/foo-public.git', # } sub lookup { @@ -51,14 +49,6 @@ sub lookup { $rv->{snapshot_re} = qr/\A\Q$snap\E[-_]/; $rv->{snapshot_pfx} = $snap; - # gitweb compatibility - foreach my $key (qw(description cloneurl)) { - $rv->{$key} = PublicInbox::Config::try_cat("$path/$key"); - } - - $rv->{desc_html} = - PublicInbox::Hval->new_oneline($rv->{description})->as_html; - foreach my $key (qw(publicinbox vcs readme group snapshots)) { $rv->{$key} = $self->{"repo.$repo_path.$key"}; } -- cgit v1.2.3-24-ge0c7