28bd450787b5c6d07c484d1646c8efb3ea08c587
Add StyleCache struct with hash-keyed LRU-eviction strategy and integrate into StyleSheet via Mutex<StyleCache> so no signature changes are needed on evaluate_vdom_incr. - StyleCache::get_or_compute hashes (type_name, props, epoch) -> ComputedStyle - LRU: full clear on overflow (max 1024) - RefCell avoided in favor of Mutex so StyleSheet remains Sync for parallel matching_rules_batch - Manual Clone impl skips cache (fresh cache on clone) - Call sites in evaluate_vdom_incr switched from ComputedStyle::compute to stylesheet.compute_cached - Cache cleared in build_index after epoch increment (stale entries)
Description
Languages
Rust
100%
