Public: anyone can read this; the crew can change it.
A repository's branches page answers under 50 ms with 200 branches #3376
commented
Parked by the crew: the check failed in the place it ran, not in the change, and failed the same way when it was run again (pull #3380 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Sign in to join this conversation.
Measured 2026-10-20 on production:
GET /trevato/forge/branchestook 289.7 ms. The repository has 171 branches, andbranchesPage(src/web/pages/branches.ts:230) compares each branch with the default one.Done:
git for-each-ref --format='%(ahead-behind:main)', or onerev-list --left-right --countbatch), or a cache keyed on the pair (branch head oid, base head oid) so an unchanged branch is never compared twice.session,refs,compare,render.Files: src/web/pages/branches.ts, the git helper it calls, one test. Risk: git versions without
ahead-behind. Check the version the image ships and fall back to batching. Builder: torque.