Public: anyone can read this; the crew can change it.

v0.7.713 was released and does not look right #17631

opened this in answer to

Merged 16h 29m ago, live in production

Home's tell box no longer reads issue and pull counts for every app it lists, which was the biggest render cost I found on a many-app forge. I couldn't reproduce the full 204 ms from the release log, because the sandbox can't see production's data.

Notes

opened this

Home's tell box no longer reads issue and pull counts for every app it lists, which was the biggest render cost I found on a many-app forge. I couldn't reproduce the full 204 ms from the release log, because the sandbox can't see production's data. I haven't confirmed it brings home under the 100 ms line on the stage rig.

What I found. v0.7.713 (#17593) read nothing that scales: its changes to home are a single idle-reason lookup. The three over-budget pages (/, /?view=table, /trevato/forge) are slow in the render phase, after the lane read. I profiled signed-in / on a fixture of 120 apps with 40 issues each, timing each section of the render. The tell box (tellBox) stood out at 12–26 ms. It only prints owner/name options, but it called writableAppsOf, which fetched open-issue and open-pull counts for up to 200 repos.

What changed.

  • writableAppsOf takes an optional withoutCounts argument, off by default, so every other caller keeps the counts (src/web/studio/asks.ts).
  • tellBox passes true (src/web/studio/living.ts). The same apps are listed in the same order, so nothing visible changes.
  • On the fixture, render went from about 25–40 ms to about 10 ms warm, and the tell box went from 12–26 ms to 2.6 ms.
  • New test test/tell-box-lean.test.ts checks that the lean read returns the same apps as the full one with no counts, and that the full read still has them.

Checks. tsc is clean. These all pass: test/tell-box-lean.test.ts, home-flow, home-builders-idle, snappy, home-first-paint, home-200 and home-cache. scripts/fast.ts named about 2,700 test files, so I ran those tests by hand and not the whole set. The commits carry No door:, Looks: / and Try: lines.

What I left out.

  • readFacts (4–14 ms on the fixture) and readSlots (2–10 ms) are the next biggest costs on home. I didn't touch them.
  • I didn't add a per-section timing phase to home.
  • The gate's "writableAppsOf looks like appsOf" similarity note stands. The two differ only in which repo list they read, so I left them.

Try. Sign in on a forge with many apps and check the render value in the Server-Timing header of /. It should be well under the 204 ms in the release log. Or run bun run bench/home-phases.ts locally.

Closes #17628

2 earlier comments
commented

Home's tell box no longer reads issue and pull counts for every app it lists, which was the biggest render cost I found on a many-app forge. I couldn't reproduce the full 204 ms from the release log, because the sandbox can't see production's data. I haven't confirmed it brings home under the 100 ms line on the stage rig.

What I found. v0.7.713 (#17593) read nothing that scales: its changes to home are a single idle-reason lookup. The three over-budget pages (/, /?view=table, /trevato/forge) are slow in the render phase, after the lane read. I profiled signed-in / on a fixture of 120 apps with 40 issues each, timing each section of the render. The tell box (tellBox) stood out at 12–26 ms. It only prints owner/name options, but it called writableAppsOf, which fetched open-issue and open-pull counts for up to 200 repos.

What changed.

  • writableAppsOf takes an optional withoutCounts argument, off by default, so every other caller keeps the counts (src/web/studio/asks.ts).
  • tellBox passes true (src/web/studio/living.ts). The same apps are listed in the same order, so nothing visible changes.
  • On the fixture, render went from about 25–40 ms to about 10 ms warm, and the tell box went from 12–26 ms to 2.6 ms.
  • New test test/tell-box-lean.test.ts checks that the lean read returns the same apps as the full one with no counts, and that the full read still has them.

Checks. tsc is clean. These all pass: test/tell-box-lean.test.ts, home-flow, home-builders-idle, snappy, home-first-paint, home-200 and home-cache. scripts/fast.ts named about 2,700 test files, so I ran those tests by hand and not the whole set. The commits carry No door:, Looks: / and Try: lines.

What I left out.

  • readFacts (4–14 ms on the fixture) and readSlots (2–10 ms) are the next biggest costs on home. I didn't touch them.
  • I didn't add a per-section timing phase to home.
  • The gate's "writableAppsOf looks like appsOf" similarity note stands. The two differ only in which repo list they read, so I left them.

Try. Sign in on a forge with many apps and check the render value in the Server-Timing header of /. It should be well under the 204 ms in the release log. Or run bun run bench/home-phases.ts locally.

commented

<!-- look-pages f3ce287b412c --> Look pages for f3ce287, from the gate:

  • look pages (named): this pull changes src/web/studio/asks.ts, src/web/studio/living.ts; a commit names /
commented

Nothing in this feedback needs a code change, so I pushed nothing new.

  • Look pages: the gate's note says look pages (named) and that a commit names /. That is the gate accepting my Looks: / line, not a refusal.
  • Both doors: the tell box shows the same apps and words on the page and in the terminal. Only a read inside it got leaner, so the commit says No door: with that reason.
  • Real input in tests: test/tell-box-lean.test.ts builds a real admin, repo and app record, with no as never.
  • Issue number: every commit subject carries (#17628).
  • Dead code: I added no exports. writableAppsOf gained an optional argument and is still called from the same places.

I left the gate's note that writableAppsOf looks like appsOf as it is. The two differ only in which repo list they read.

The pull description from my earlier message still holds. The change is one read in the home's tell box: it now lists the apps by name without fetching their issue and pull counts. On a 120-app fixture, the home render went from about 25–40 ms to about 10 ms.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs