Render each documentation text once (0.10.1) #6

Closed
moof wants to merge 0 commits from refs/pull/6/head into main
moof commented 2026-10-21 01:37:48 +00:00 (Migrated from code.moof.space)

Requested by Moof · project thread

First speed-up from the UI review. Profiling an NX.xsd build showed about 70% of generation time in Markdown rendering of documentation: markdown.markdown() builds a fresh converter (parsers, inline patterns) on every call, and it was called 186k times, mostly on texts NeTEx repeats across declarations.

This caches rendered documentation by its text and reuses one converter with reset().

  • NX.xsd with --transmodel: 34s to 10s locally
  • Generated site is byte-identical apart from the generated-at timestamp (diff -r -I generated-time)
  • Tests pass
  • Bumps to 0.10.1

🤖 Generated with Claude Code

https://claude.ai/code/session_01SnEtsMrAdL7vb2Ln5KuqTS

<!-- claude-projects-attribution --> _Requested by **Moof** · [project thread](https://claude.ai/code/project/chan_01BmPQxcG1UuS21Gfai9Zcdh?thread=cmsg_01BmPQxcG1UuS21Gfai9ZcdhTymh7qrQ729gG29XEc821m)_ First speed-up from the UI review. Profiling an `NX.xsd` build showed about 70% of generation time in Markdown rendering of documentation: `markdown.markdown()` builds a fresh converter (parsers, inline patterns) on every call, and it was called 186k times, mostly on texts NeTEx repeats across declarations. This caches rendered documentation by its text and reuses one converter with `reset()`. - `NX.xsd` with `--transmodel`: 34s to 10s locally - Generated site is byte-identical apart from the generated-at timestamp (`diff -r -I generated-time`) - Tests pass - Bumps to 0.10.1 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SnEtsMrAdL7vb2Ln5KuqTS
moof commented 2026-10-21 13:54:30 +00:00 (Migrated from code.moof.space)

Incorporated in !7

Incorporated in !7

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Reference4PT/prettyxsd!6
No description provided.