| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- expandWireBytes :: Int -> Int
- expandWireBytesInteger :: Integer -> Integer
- chargeForResident :: Int -> Int
- mirrorJobEstimatedBytes :: Int
- bufferedChunkCharge :: Int -> Int
- decodedDocumentCharge :: ByteString -> Int
- saturatingCharge :: Integer -> Int
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.
expandWireBytesInteger :: Integer -> Integer Source #
Expand retained-state terms before their final saturating conversion to Int.
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.
bufferedChunkCharge :: Int -> Int Source #
Allow four overlapping byte copies and builder/list cells before retaining a nonempty chunk.
decodedDocumentCharge :: ByteString -> Int Source #
Estimate scalar copies and tree/domain slots from actual JSON or XML bytes before decoding.