From caf64604fc01e708c7432be50eba4f8f14940b81 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 10 Oct 2026 11:04:38 +0200 Subject: [PATCH] Record the reading cost --- docs/reading-cost.md | 17 +++++++++++++++++ todo.md | 9 +++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 25bc78e..8c3930b 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -198,3 +198,20 @@ Read most (opens and searches): - `src/markdown/parse/markdown-to-adf.test.ts` 5 - `src/markdown/emit/adf-to-markdown.ts` 4 - `src/conformance/markdown-property.test.ts` 3 + +## Reading cost, chunk 268926753bdb, finished 2026-10-10T09:02:04Z + +174429 new input tokens before the first commit. + +Read most (opens and searches): + +- `src/markdown/emit/line-escaping.ts` 9 +- `docs/decisions.md` 7 +- `src/markdown/directive-syntax.ts` 5 +- `todo.md` 5 +- `src/markdown/parse/inline-content.ts` 4 +- `README.md` 3 +- `spec/flavour.md` 3 +- `src/markdown/commonmark/grammar.ts` 3 +- `src/markdown/directive-syntax.test.ts` 3 +- `src/markdown/portable/conventions.ts` 3 diff --git a/todo.md b/todo.md index 97c1c59..b21ac48 100644 --- a/todo.md +++ b/todo.md @@ -129,10 +129,11 @@ commonmark.js avoids the backtick cost by caching backtick runs by length. ### 92. Lower the reading cost of the files a chunk reads most before its first commit. The last five chunks' median is 168135 new input tokens before their first commit, the five before -them 68188. Read most over the last five, opens and searches: `README.md` 32, `docs/decisions.md` -31, `src/markdown/parse/markdown-to-adf.test.ts` 24, `todo.md` 22, `CHANGELOG.md` 19, -`spec/flavour.md` 19, `MIGRATION.md` 12, `src/markdown/parse/markdown-to-adf.ts` 12, -`src/markdown/portable/adf-to-portable-markdown.ts` 12, `src/markdown/parse/blocks.ts` 7. +them 68188. Read most over the last five, opens and searches: `docs/decisions.md` 28, `README.md` +25, `todo.md` 21, `CHANGELOG.md` 15, `spec/flavour.md` 15, +`src/markdown/portable/adf-to-portable-markdown.ts` 12, `src/markdown/parse/markdown-to-adf.test.ts` +11, `MIGRATION.md` 9, `src/markdown/emit/line-escaping.ts` 9, `src/markdown/parse/inline-content.ts` +8. ### 33. Emit a line in time linear in its mark runs, in `adfToLosslessMarkdown` and `adfToPortableMarkdown`.