Expand description
Batch CID resolver and prefetch scheduler for DHT performance optimization
This module provides:
BatchCidResolver: batches multiple CID lookups to reduce DHT overheadPrefetchScheduler: predicts and schedules prefetch candidates based on access patterns
Structsยง
- Batch
CidResolver - Batches CID provider lookups and caches results with TTL-based expiry.
- Batch
Resolver Stats - Atomic counters for
BatchCidResolveractivity. - Batch
Resolver Stats Snapshot - A point-in-time snapshot of
BatchResolverStats. - Cached
Result - A resolved entry stored in the cache.
- Lookup
Handle - A lightweight handle returned to the caller when they queue a CID lookup.
- Pending
Lookup - A CID that has been queued but not yet resolved.
- Prefetch
Scheduler - Tracks CID access patterns and suggests prefetch candidates.