Skip to main content

LOOKUPS

Static LOOKUPS 

Source
static LOOKUPS: LazyLock<Mutex<HashMap<(u64, Address), Arc<Mutex<Option<Option<(String, Arc<StorageLayout>)>>>>>>>
Expand description

Per-(chain, address) lookup slots, shared across the whole process.

The outer mutex only guards the map; the work itself happens while holding the inner mutex of a single entry, so lookups for different addresses still run concurrently while lookups for the same address wait for the first one to finish and then reuse its result.