The providers' page asked MemberGroups for each provider and GroupKept
for each model, and each call built the groups again from every
provider's entries: 11.6 MB of what twenty window polls allocated with
real accounts (m2463 profile). Both now go through heldFrom, as the
other catalog reads do: built once per Hold, kept across requests
while the stamp stays, shared and only for reading.
Test: TestMemberGroupsBuiltOnceWhileHeld. 20 looks under one Hold,
each asking MemberGroups 12 times, build it once at most; a group
saved after (g5) is in the next look.
Run on mote, at this tree on dd7442f28:
- gofmt, go vet (darwin, windows, linux): ok
- the new test with TestUnlistedGroupKept, 3 times: ok
- broken by hand (MemberGroups built afresh each call): red, "20
looks under one Hold built the member groups 20 times, want 1 at
most"
- go test ./internal/provider: ok. TestModelSpecWinsOverTheListAndASync
was red once in the run before (with only the test's assertion
since fixed) and ok alone 3 times and in this run: #4637
- go test ./internal/gui: every test ok except the known
TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and
TestMainWindowCorners (#3949)
Not run: an A/B with the real-account sandbox for this change alone.