diff options
author | Eric Wong <e@80x24.org> | 2022-08-12 22:09:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-16 03:31:45 +0000 |
commit | d36b6085b7cb78eba6e904d5df82bbe5f938ed2a (patch) | |
tree | 582edf31cb9723d0a968c42afa92a49a18274d20 /lib/PublicInbox/LEI.pm | |
parent | fd261b9e6567450573531fadec741ec887d9d6b3 (diff) | |
download | public-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/LEI.pm')
0 files changed, 0 insertions, 0 deletions