]> Sergey Matveev's repositories - public-inbox.git/commit
imap: simplify partial fetch structure
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:15 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit3601eee7e9370ea6c84052459c6dc4a97efd3e37
tree72827384b2e58507b69d59d6f7e048cb5c83b378
parent40ee12e172f44a2e8eed8654f5e7835ce69a894f
imap: simplify partial fetch structure

While the contents of normal %want hash keys are bounded in
size, %partial can cause more overhead and lead to repeated sort
calls on multi-message fetches.  So sort it once and use
arrayrefs to make the data structure more compact.
lib/PublicInbox/IMAP.pm