]> Sergey Matveev's repositories - public-inbox.git/commit
config: do not implicitly set coderepo.*.cgiturl
authorEric Wong <e@80x24.org>
Sun, 8 Jan 2023 08:04:12 +0000 (08:04 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Jan 2023 17:49:28 +0000 (17:49 +0000)
commitf0d445048bc5d3de05a963d9a024279a93152c1f
tree8ddfa4bf241a87550a7fd99b4b513258b109822f
parent769980473c998566c038744a72804e4d38d2b8cc
config: do not implicitly set coderepo.*.cgiturl

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
lib/PublicInbox/Config.pm