Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance and resources

Realization chooses algorithms, indexes, execution strategies and resources to process the applications. The semantic contract determines the observables these choices must preserve. The gas budget controls the logical computational work; memory, execution time and processing capacity belong to the physical conditions of the realization.

Authority note: gas semantics are normative (OUT_OF_GAS is a typed outcome); physical limits belong to the realization contracts and are NOT normative promises of the language.

Measure per application and basis

Record the target, the set of sources, the contract revision, the input volume and the parameters used. Compare executions that answer the same question under compatible bases.

Durability has a measured floor of its own: the persistence engine publishes its protocol and tables, and an application’s latency budget begins where that floor ends. See FormaKV, the persistence engine.

Separate formation time, realization preparation, evaluation and output materialization. A plan change can shift work between these stages.

Indexes and planning

Indexes and auxiliary structures accelerate selection and access to relations. The planner can reorganize operations, merge stages and run independent work in parallel while preserving the required dependencies, semantic order and completeness.

The strategy must consider the query pattern and the base updates. A materialized structure has dependencies that determine when it can be reused or needs to be rebuilt.

Result reuse

Reuse depends on equivalence sufficient for the consumer. Verify revisions, context, frame, temporality, authority, dependencies and completeness. A historical result can be reusable for one question and inadequate for another that requires the current basis.

The evolution impact contract determines the recomputation conditions. New elements that come to satisfy a query can change the result even when the previously read items remain the same.

Incrementality

Incremental consumption uses contracts of partiality, ordering, revision and finalization. The application can process updates without waiting for a complete set when its contract admits this form of input.

The performance of this realization must be tracked together with the result guarantees. A visualization and an irreversible decision can use different consumption policies over the same stream.

Execution limits

Record the applied budget and examine the completion state. Gas exhaustion keeps the difference between interrupted work, partial result and complete result. The producer’s policy determines whether incomplete execution can publish a usable artifact.

The physical limits of a realization must be evaluated under its own resource contracts, keeping the correspondence with the application and basis used.