ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.MemoryModel

Description

Retained-document accounting and fixed resource estimates. Compact representation charges differ from original source bytes. The retained estimate does not bound active input, parser, policy, merge, or output memory.

Synopsis

Documentation

expandWireBytes :: Int -> Int Source #

Estimate retained bytes from a compact representation charge using the 7.5 factor. This factor is independent of source-byte regression envelopes and active-work admission.

chargeForResident :: Int -> Int Source #

The smallest compact charge that expandWireBytes expands to at least the given heap bytes.

mirrorJobEstimatedBytes :: Int Source #

The resident-byte allowance per in-memory mirror queue slot.