Skip to content
1 viewer

rust 1,859,748 · typescript 235,215 · javascript 132,932 · python 20,426 · 6,405 files · digest 3ddca2872e6e · built in 1.4 s · crystals off

crates/cre8-app-terrain/src/cache.rs

cre8-app-terrain · module cache · src · 325 lines (235 code, 47 comment) · sha c8925e22a6858c00

Items

const TERRAIN_CACHE_MAX_BYTES const TERRAIN_CACHE_MAX_ENTRIES const OSM_FEATURE_CACHE_MAX_BYTES const OSM_FEATURE_CACHE_MAX_ENTRIES struct BoundedCacheEntry struct BoundedLruCache impl BoundedLruCache static STORE static STORE

Functions

By call-graph weight (PageRank; 1.0 is the average function). 23 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
BoundedLruCache::newsrc/cache.rs:66method91804.2
storesrc/cache.rs:138fn41212.2
BoundedLruCache::putsrc/cache.rs:83method276832.1
cache_key_forsrc/cache.rs:33fn31401.8
cache_getsrc/cache.rs:162fn31811.4
cache_putsrc/cache.rs:170fn41821.4
assert_bounded_cache_invariantssrc/cache.rs:181fn101601.3
osm_feature_storesrc/cache.rs:143fn41211.2
BoundedLruCache::removesrc/cache.rs:118method83101.1
BoundedLruCache::evict_oldestsrc/cache.rs:127method92101.1
BoundedLruCache::promotesrc/cache.rs:111method62100.9
osm_feature_cache_getsrc/cache.rs:148fn41110.6
osm_feature_cache_putsrc/cache.rs:155fn41120.6
BoundedLruCache::getsrc/cache.rs:76method61010.5
cache_key_is_stable_per_inputssrc/cache.rs:193fn51010.5
cache_key_changes_with_coordinatessrc/cache.rs:200fn51010.5
put_then_get_returns_same_bytessrc/cache.rs:207fn71020.5
bounded_lru_entry_cap_evicts_the_least_recently_used_keysrc/cache.rs:216fn121030.5
bounded_lru_byte_budget_uses_hit_promoted_lru_ordersrc/cache.rs:230fn141030.5
bounded_lru_entry_cap_evicts_zero_byte_negative_cache_entriessrc/cache.rs:246fn151030.5
bounded_lru_replacement_updates_hash_bytes_and_accountingsrc/cache.rs:263fn131040.5
bounded_lru_oversize_bypasses_without_evicting_unrelated_entriessrc/cache.rs:278fn191040.5
bounded_lru_concurrent_updates_preserve_cache_invariantssrc/cache.rs:299fn262030.5

Source not readable from this process.