diff options
author | Eric Wong <e@80x24.org> | 2023-01-08 08:04:12 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-08 17:49:28 +0000 |
commit | f0d445048bc5d3de05a963d9a024279a93152c1f (patch) | |
tree | 8ddfa4bf241a87550a7fd99b4b513258b109822f /lib | |
parent | 769980473c998566c038744a72804e4d38d2b8cc (diff) | |
download | public-inbox-f0d445048bc5d3de05a963d9a024279a93152c1f.tar.gz |
It's a needless waste of memory and this change reduces the WwwCoderepo object size by over 25% with over 1K repos. Using the following check: perl -MDevel::Size=total_size -I lib -MPublicInbox::WwwCoderepo -E \ 'say total_size(PublicInbox::WwwCoderepo->new(PublicInbox::Config->new))' before: 1612515 after: 1184385
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Config.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 174c75ef..c48ab2bd 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -226,7 +226,6 @@ sub cgit_repo_merge ($$$) { $rel =~ s!/?\.git\z!!; } $self->{"coderepo.$rel.dir"} //= $path; - $self->{"coderepo.$rel.cgiturl"} //= _array($rel); } sub is_git_dir ($) { |