Skip to main content

MAX_RECORD_BYTES

Constant MAX_RECORD_BYTES 

Source
pub const MAX_RECORD_BYTES: usize = _; // 65_536usize
Expand description

The most of one record’s JSON this reader holds in memory.

Reasonable range: 8 KiB to 256 KiB. The records a gate is asked about are small — a reply gate lists at most five rules, an AI preference four axes — and this bound is what makes the cache’s memory arithmetic in Limits hold: entries times this. Smaller than [didbot_http::MAX_JSON_BODY], which bounds one document held once rather than Limits::entries of them held at the same time.