Skip to main content

Module cached_style_parser

Module cached_style_parser 

Source
Expand description

Cached Style Parser for Performance Optimization

Single implementation shared by vtcode-core::utils::CachedStyleParser and vtcode-ui::tui::utils::CachedStyleParser, which re-export it.

This module provides caching for frequently parsed anstyle strings to avoid repeated parsing overhead, especially useful for theme parsing and frequently used style configurations.

Uses LrMap (left-right concurrent map) for lock-free reads on the hot path while still allowing safe concurrent inserts on cache miss.

Structsยง

CachedStyleParser
Thread-safe cached parser for Git and LS_COLORS style strings