Skip to main content

Module batch_resolver

Module batch_resolver 

Source
Expand description

Batch CID resolver and prefetch scheduler for DHT performance optimization

This module provides:

Structsยง

BatchCidResolver
Batches CID provider lookups and caches results with TTL-based expiry.
BatchResolverStats
Atomic counters for BatchCidResolver activity.
BatchResolverStatsSnapshot
A point-in-time snapshot of BatchResolverStats.
CachedResult
A resolved entry stored in the cache.
LookupHandle
A lightweight handle returned to the caller when they queue a CID lookup.
PendingLookup
A CID that has been queued but not yet resolved.
PrefetchScheduler
Tracks CID access patterns and suggests prefetch candidates.