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, 5:59 PM
mollekopfPushed on May 4 2020, 11:50 AM
Differential Revision
D1243: Return the result immediately if we run out of memory
Parents
rS6a795d53eefc: Avoid serializing to string
Branches
Unknown
Tags
Unknown
Build Status
Buildable 29347