mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 08:06:13 +00:00
The batch budget counted JSON characters, but a Parcel carries strings as UTF-16 plus a few hundred bytes per operation, so a full batch was about 700 KB of a 1 MB Binder buffer the whole process shares. Batches are now weighed at two bytes per character plus 300 bytes per op and kept under 500 KB of that. The state op no longer joins a batch whose last item already fills a provider yield window of 499 operations, which ContactsProvider refused.