]> Sergey Matveev's repositories - public-inbox.git/commit
cgit: use Perl 5.10-isms, optimize, and golf
authorEric Wong <e@80x24.org>
Tue, 4 Oct 2022 19:12:32 +0000 (19:12 +0000)
committerEric Wong <e@80x24.org>
Wed, 5 Oct 2022 20:24:42 +0000 (20:24 +0000)
commit061d247778949c371734c6ab5e3fe1be0dced23b
tree6ecf4f25235c0d6f90b93ecdfe45be7bb33d6fd3
parente95fbe90accedf079f3ddbd1df8e267e2fe90c2e
cgit: use Perl 5.10-isms, optimize, and golf

We can reduce variable assignments in a few places and filter
keys more quickly using the `grep' Perl op rather than relying on
`m// or next' inside a loop.  Similar changes to the NNTP and IMAP
(e.g. b700fce60f25038e (nntp: NEWNEWS: speed up filtering, 2020-11-27))
yielded good improvements.
lib/PublicInbox/Cgit.pm