diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-11 17:17:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-11 17:17:54 -0500 |
| commit | 091df4177523507bc2f9f1d2cc89f410bedfce3a (patch) | |
| tree | e4eda72799e002bfcd20d6992b378efccdf94ec9 /tests/test-custom-ordering-arrayify.el | |
| parent | bfd6ec55499cf9f7a07b0fb43887b348ad33373e (diff) | |
| download | dotemacs-091df4177523507bc2f9f1d2cc89f410bedfce3a.tar.gz dotemacs-091df4177523507bc2f9f1d2cc89f410bedfce3a.zip | |
perf(lorem-optimum): speed up the Markov generation path
`cj/markov-join-tokens' collects tokens in a list and `mapconcat's once instead of repeated string concatenation. `cj/markov-generate' uses `push'/`nreverse' instead of repeated `append'. The Markov keys are cached as a vector so random key selection is O(1). Re-enabled the benchmark tests (the `:slow' tags were stale) and added a `cj/lipsum-title' test after byte-compilation flagged a malformed form there. `assets/liber-primus.txt' is left as-is (36 KB / 5,374 words, small enough not to need trimming). 100K-word learning now measures about 196 ms.
Diffstat (limited to 'tests/test-custom-ordering-arrayify.el')
0 files changed, 0 insertions, 0 deletions
