Files
picoclaw/pkg
xiaoen 5d73ee2d9a refactor(memory): use sync.Map for session locks and skip-scan in readMessages
Address review feedback from @Zhaoyikaiii:

- Replace map[string]*sync.Mutex + separate mu with sync.Map.LoadOrStore
  for simpler, lock-free session lock management.

- Add skip parameter to readMessages so callers (GetHistory, Compact)
  can skip truncated lines without paying the json.Unmarshal cost.

- Add countLines helper for TruncateHistory's count reconciliation,
  avoiding full deserialization when only the line count is needed.
2026-02-26 14:31:02 +08:00
..
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-24 10:27:49 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 23:04:41 +08:00
2026-02-20 22:35:16 +02:00