Skip to content

Improve tbdocs performance - #275

Merged
KubaO merged 9 commits into
twinbasic:mainfrom
KubaO:staging
Nov 18, 2026
Merged

KubaO merged 9 commits into
twinbasic:mainfrom
KubaO:staging

Conversation

@KubaO

@KubaO KubaO commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator
  • git from the main thread: buildInfo was a lane task, and a lane that waits for git does no other work. It is now one process instead of two, started by the main thread and awaited by bookPayload, and none in a build without a PDF. addinFiles starts the add-in's file listing early, so addinProject no longer waits for git at the end of the build: about 0.1 s instead of 0.5 s on 16 CPUs. The Gantt chart and the timing line show each process as git log and git ls-files.
  • Help archive: a file deflated in pieces, in practice the offline search index, is at level 6; whole files stay at level 9. That file is the last one the build writes, so its deflating delays the build's end: 0.15 s instead of 0.6 s on 16 CPUs, for an archive 206 KB larger.
  • build_speed.mjs: measures the build: one-off builds and serve rebuilds of one checkout or two, with the times read from each Gantt chart, a CPU profile by function, and one part alone. Its test runs in test.bat and CI.
  • Docs: the new WIP.BuildSpeed.md has the rules for work on the build's speed, how to measure it and the open work. Pipeline Stages, tbdocs Internals, WIP.Build.md and the Tools pages describe the rest.

…bookPayload waits for, none without a PDF; addinFiles starts the add-in's file listing early, one process, so addinProject no longer waits for git at the build's end
…s of one checkout or two, the times read from each Gantt chart, a CPU profile by function, one part alone), with its test in test.bat and its entries on the developer pages
@KubaO
KubaO merged commit 11327e6 into twinbasic:main Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant