picoclaw/pkg/memory
xiaoen d55e5540af fix(memory): bound lock memory and increase scanner buffer
Address feedback from @yinwm for long-running daemon use:

- Replace sync.Map with a fixed-size sharded lock array (64 mutexes).
  Keys are mapped via FNV hash, so memory is O(1) regardless of how
  many sessions are created over the process lifetime.

- Increase scanner buffer cap from 1 MB to 10 MB. Tool results
  (read_file on large files, web search responses) can easily exceed
  1 MB. The scanner still starts at 64 KB and only grows as needed.
2026-02-26 15:35:04 +08:00
..
jsonl.go fix(memory): bound lock memory and increase scanner buffer 2026-02-26 15:35:04 +08:00
jsonl_test.go refactor(memory): use sync.Map for session locks and skip-scan in readMessages 2026-02-26 14:31:02 +08:00
migration.go feat(memory): support migration from legacy JSON sessions 2026-02-26 08:35:05 +08:00
migration_test.go feat(memory): support migration from legacy JSON sessions 2026-02-26 08:35:05 +08:00
store.go feat(memory): add Compact method for physical JSONL compaction 2026-02-26 08:42:35 +08:00