HomePhorge

Return the result immediately if we run out of memory

Description

Return the result immediately if we run out of memory

Summary:
If we don't:

  • we was a bunch of cpu because we'll be going over the entire list of

remaining messages to see if any fit (potentially over and over)

  • we end up with out of order results (which is suppose should be

technically ok)

The only thing this change makes worse is that we potentially add
another roundtrip because we didn't include a smaller message that would
have still fit in the same batch.

Differential Revision: https://git.kolab.org/D1243

Details

Provenance
mollekopfAuthored on Apr 30 2020, 3:59 PM
mollekopfPushed on Aug 21 2023, 6:45 PM
Parents
R4:6a795d53eefc: Avoid serializing to string
Branches
Unknown
Tags
Unknown

Event Timeline