Store::cached() returns a process-global Arc<tokio::sync::Mutex<Store>> that loads once and reloads only when log files change (is_stale() checks file sizes). All memory and journal tools use cached_store() instead of Store::load() per invocation. Fixes CPU saturation from HashMap hashing when multiple subconscious agents make concurrent tool calls. Co-Authored-By: Proof of Concept <poc@bcachefs.org> |
||
|---|---|---|
| .. | ||
| api | ||
| tools | ||
| context.rs | ||
| mod.rs | ||
| oneshot.rs | ||