Files
magpie/internal
yetone abacab7207 provider: a model's listing providers share one copy of each provider
listedBy, the providers listing each model (for a model no catalog entry
has), appended a copy of the whole Provider (1.3KB) for every model of
every provider. It now keeps one copy per provider and every model points
at it; the one caller copies the provider it returns, as before.

Measured on mote with a real-account sandbox HOME (network blocked),
2.5 min with the usage page open, alloc_space of listedBy:
  w44 (5a0e0378c) 29.56 MB, w45 (this) 10.81 MB; total 809.5 -> 790.3 MB.
liveHeap 81.2 -> 81.0 MB (the map is rebuilt, not held long).

Run at this tree on mote: go vet ./internal/provider; go test
./internal/provider (ok 138.6s) ./internal/gateway/... (ok 906.9s);
gofmt -l clean. Not added: a test for the sharing itself.
2026-11-13 07:52:48 +08:00
..
…
…
…
…
…
…
…
…
…
…
…
…