]> Sergey Matveev's repositories - public-inbox.git/commit
www_coderepo: do not copy {-code_repos} from config
authorEric Wong <e@80x24.org>
Sun, 8 Jan 2023 08:04:13 +0000 (08:04 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Jan 2023 17:49:29 +0000 (17:49 +0000)
commit1802dc29bda25a5478787d3d7a8a3c2de6cc6797
treed6103a5796548ac579355159689d6bd8166683c6
parentf0d445048bc5d3de05a963d9a024279a93152c1f
www_coderepo: do not copy {-code_repos} from config

Avoiding 2 extra hash lookups per-request when we do plenty more
isn't worth the static memory overhead.  This shaves another chunk
off our memory use:

$ perl -MDevel::Size=total_size -I lib -MPublicInbox::WwwCoderepo -E \
  'say total_size(PublicInbox::WwwCoderepo->new(PublicInbox::Config->new))'

before: 1184385
 after: 1020878
lib/PublicInbox/WwwCoderepo.pm