3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 19:58:28 +01:00

Record the reading cost

This commit is contained in:
2026-10-09 13:16:38 +02:00
committed by Lillem4n
parent 654a960888
commit 1ece265ea4
2 changed files with 23 additions and 1 deletions
+13
View File
@@ -151,3 +151,16 @@ Read most (opens and searches):
- `todo.md` 4
- `docs/decisions.md` 3
- `CHANGELOG.md` 2
## Reading cost, chunk 5c2c2691022d, finished 2026-10-09T11:08:17Z
45283 new input tokens before the first commit.
Read most (opens and searches):
- `README.md` 2
- `package.json` 2
- `CHANGELOG.md` 1
- `ci.sh` 1
- `docs/decisions.md` 1
- `todo.md` 1
+10 -1
View File
@@ -6,7 +6,7 @@
`Bar = 9`
`Next ID = 92`
`Next ID = 93`
| Goal | W |
|---|---|
@@ -32,6 +32,7 @@
| 60 | 0.2.0 | decision | **Collect the questions `parse/` asks `emit/` into one named module.** | 3 | 4 | 2 | 6 | 2 | 10.7 |
| 59 | 0.2.0 | decision | **Group the directive grammar into `src/markdown/directive/`, move `Read<T>` to `result.ts`, and move `Flavour` and `flavourClaims` to `markdown/flavour.ts`.** | 3 | 5 | 2 | 6 | 2 | 10.4 |
| 62 | 0.2.0 | decision | **Move the portable flavour's reading out of `parse/` and its writing out of `emit/` into `markdown/portable/`, so `emit/` no longer imports `portable/`.** | 4 | 5 | 2 | 6 | 2 | 9.4 |
| 92 | 0.2.0 | | **Lower the reading cost of the files a chunk reads most before its first commit.** | 2 | 4 | 2 | 4 | 1 | 9.0 |
| 89 | 0.2.1 | | **Build a `date`, `emoji`, `inlineCard`, `mention` or `status` holding no mark Atlassian's schema withholds from it, in every reader.** | 4 | 4 | 5 | 6 | 4 | 13.0 |
| 33 | 0.2.1 | defect | **Emit a line in time linear in its mark runs, in `adfToLosslessMarkdown` and `adfToPortableMarkdown`.** | 4 | 5 | 6 | 9 | 9 | 8.7 |
| 7 | 0.3.0 | decision | **Ship HTML: `adfToHtml`, `htmlToAdf`, and markdown to and from HTML composed through ADF, each call named by its flavour.** | 6 | 9 | 9 | 9 | 2, 4 | 25.8 |
@@ -120,6 +121,14 @@ Writing: `spellPortableBlock`, `quotedUnder`, `tryTaskList` and `taskBlocks` in
`flavourClaims`. Every comprehension reader on 2026-10-03 named the portable flavour's spread across
three directories.
### 92. Lower the reading cost of the files a chunk reads most before its first commit.
The last five chunks' median is 97329 new input tokens before their first commit, the five before
them 66995. Read most over the last five, opens and searches: `README.md` 26, `docs/decisions.md`
23, `src/markdown/parse/markdown-to-adf.test.ts` 19, `todo.md` 17, `spec/flavour.md` 13,
`CHANGELOG.md` 10, `MIGRATION.md` 8, `src/markdown/parse/markdown-to-adf.ts` 7,
`src/conformance/commonmark-spec.test.ts` 6, `corpus/commonmark-spec/exceptions.json` 5.
### 89. Build a `date`, `emoji`, `inlineCard`, `mention` or `status` holding no mark Atlassian's schema withholds from it, in every reader.
`*!adf:mention[@a]{id=…}*` and `[!adf:status[Done]{…}](/u)` build a node holding `em` or `link`.