Skip to main content

Module cache

Module cache 

Source
Expand description

Right-pane viewer: cache full styled Text + viewport windowing for heavy paths (delimiter tables, large markdown, large syntect-highlighted files). Lives under render with no layout dependency so [UblxState] can hold cache fields via crate::render::cache.

Structs§

CodeViewerCacheParams
Snapshot + palette context for syntect viewer cache match and build (content module builds entries).
LruCache
Least-recently-used by recency of use (get/insert move to MRU). Index 0 is most recent.
ViewerTableCacheKey
ViewerTextCache
ViewerTextCacheEntry
One slot: path, layout width, theme, content identity, metrics, full rendered body.

Enums§

ViewerContentIdentity
Whether a cached render still matches the live preview.

Constants§

VIEWER_TEXT_CACHE
Thresholds for markdown / syntect viewer caching. Use this in const contexts; Default matches.

Functions§

viewer_content_identity
Derive identity for cache invalidation. Call with the current preview raw and DB mtime.
viewer_table_cache_key
viewer_table_cache_key_from_entry