Files
magpie/internal
yetone b43c4eda80 provider: a plugin's kept icon found on disk isn't looked for again for a minute
/api/providers asks for every plugin provider's icon on each answer,
and each ask ran os.Stat on the icon's file. On a real account (26
providers) a CPU profile of 40 /api/providers calls on mote had
pluginOwnIcon's stat at 80ms of providersState's 420ms. A file found is
now taken to be there for iconSeenFor (a minute); one removed is looked
for, found gone and stored or fetched again once that has passed.

Run (mica unless named):
- go test -count=1 -timeout 45m ./internal/provider/ ./internal/gui/: ok
- go vet ./internal/provider/ with GOOS darwin, windows, linux: ok
- TestKeptIconNotLookedForEachAsk broken by hand (the seen check made
  never true): red, "the file was looked for within iconSeenFor and
  stored again"; green restored.
- Real account on mote (sandbox HOME, magpie web, 40 /api/providers
  under a 10s CPU profile): providersState 420ms -> 230ms of samples,
  pluginOwnIcon gone from the profile. mote was at load ~54, so the
  per-call wall time (11ms) moved within noise.

Not tried: the GUI suite (no GUI file changed).
2026-11-12 14:35:38 +08:00
..
…
…
…
…
…
2026-11-11 08:14:28 +08:00
…
…
…