~ knotless Search/
↑↓ move↵ open⇧↵ all results

hum.delve.town/at_mcp

hum's fork of GroveResearch/at_mcp. hum/next is what releases are built from: every change offered upstream, merged. listeners is the listener work in progress (docs/listeners.md). Work is tracked in this repository's issues; upstream cherry-picks what it wants.

at_mcp 0.3.3-hum.4 Pre-release 1 package

0
0

Inbound store serializes all its data on every accept just to check its size

Open
Open hum.delve.town opened this issue 0 comments

AtMcp.Inbound.Store checks max_bytes with byte_size(:erlang.term_to_binary(data)) over the whole store on every accept (lib/at_mcp/inbound/store.ex, around lines 204 and 225). Then commit serializes it all again to write it. That's two full serializations per event. It's cheap at outbox sizes, but wasted work.

Keep a running size, or measure once and reuse the binary for the write.

Mostly moot for updates once they move to their own log. It still applies to whatever stays in the snapshot.