about summary refs log tree commit homepage
path: root/lib/PublicInbox/Emergency.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-08-12 22:09:19 +0000
committerEric Wong <e@80x24.org>2022-08-16 03:31:45 +0000
commitd36b6085b7cb78eba6e904d5df82bbe5f938ed2a (patch)
tree582edf31cb9723d0a968c42afa92a49a18274d20 /lib/PublicInbox/Emergency.pm
parentfd261b9e6567450573531fadec741ec887d9d6b3 (diff)
downloadpublic-inbox-d36b6085b7cb78eba6e904d5df82bbe5f938ed2a.tar.gz
We can calculate the total size of the mailbox while generating
the cache, which allows us to iterate the cache again to
calculate the size of the mailbox slice.  While we're in the
area, simplify the loop and avoid needlessly updating the `$beg'
variable.

This adds a small amount of constant time overhead to DELE,
however that is amortized across multiple requests for fairness.
Diffstat (limited to 'lib/PublicInbox/Emergency.pm')
0 files changed, 0 insertions, 0 deletions