Skip to main content

Module program_cache

Module program_cache 

Source
Expand description

Loaded program cache.

Modules§

ebpp
The Epoch Boundary Preparation Phase (EBPP) is an optimization offered by the program cache in order to preemptively reload programs for the anticipated upcoming environment based on feature activations.
entry
env
fork_graph
global
loading_task
metrics
owner
tx_batch

Constants§

DELAY_VISIBILITY_SLOT_OFFSET
Slots between a program’s deployment and when it takes effect. A program deployed in slot N is not visible to transactions until slot N + 1.
MAX_LOADED_ENTRY_COUNT
Soft limit on the number of Loaded entries in the cache. Eviction shrinks the cache to a percentage of this count after a transaction batch, so it can be exceeded in the meantime.
MAX_TOMBSTONE_AGE_IN_SLOTS
Slots since its last access after which a program’s sole tombstone or Unloaded entry is pruned. 7.5 minutes at 200ms slot time.