fix(mostlinkedpages-json,subnets-json,recentchanges-json): render concurrently, not serially - #1968
fix(mostlinkedpages-json,subnets-json,recentchanges-json): render concurrently, not serially#1968jsdevninja wants to merge 1 commit into
Conversation
…currently, not serially Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Verdict: Needs maintainer review PR #1968: fix(mostlinkedpages-json,subnets-json,recentchanges-json): render concurrently, not serially Automated review could not complete after retrying, so this PR is not being closed by automation. Completed review signal:
Maintainer decision:
Codex review: Because this is a non-visual optimization/consistency change, it adds permanent maintenance surface without a necessary user-facing or operational benefit. Clean checks do not make it necessary to merge. Claude advisory review: Reasoning:
Risks:
Automated review by Taopedia Site Maintainer. |
Three listing-endpoint route handlers still render pages with a sequential
forloop —mostlinkedpages.json.ts,subnets.json.ts, andrecentchanges.json.ts. Each serialises everyrender()call, waiting for one article before starting the next.This converts all three to
Promise.all, matching the patternallpages.json.tsalready uses.mostlinkedpages.json.ts:for (const entry of ranked)→Promise.all(ranked.map(async …))subnets.json.ts:for (const subnet of subnets)→Promise.all(subnets.map(async …))recentchanges.json.ts:for (const slug of feedMemberSlugs)→Promise.all([...feedMemberSlugs].map(async …))(Set spread required since Set has no.map)All three checks pass with identical output: