//! How many removed layout nodes stay for later nodes to reuse, and how much
//! room for children each keeps.
use crateMemoryHeadroom;
// The children a removed node keeps room for in its lists: a node that held
// more lets its lists go, so a pool of shells holds a bounded room.
pub const KEPT_CHILD_ROOM: usize = 64;
// The most shells of removed layout nodes the recycle pool keeps under the
// current memory headroom. With ample memory, no limit: the pool keeps as
// many as its recent frames asked for. With little memory left it keeps
// none: a removed node goes, and a new one takes fresh memory, since shells
// kept for later nodes, or made ahead of them, hold memory the screen needs.
pub