aboutsummaryrefslogtreecommitdiff
path: root/modules/selection-framework.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-11 17:17:54 -0500
committerCraig Jennings <c@cjennings.net>2026-05-11 17:17:54 -0500
commit317aba55e05852c791b35b6d944444d1cad1784c (patch)
tree2214cda52abd07e3aa4dd8a386875e74c626a3cb /modules/selection-framework.el
parent6a9ab533a52797ab585a4a99a10de09c2c568428 (diff)
downloaddotemacs-317aba55e05852c791b35b6d944444d1cad1784c.tar.gz
dotemacs-317aba55e05852c791b35b6d944444d1cad1784c.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 'modules/selection-framework.el')
0 files changed, 0 insertions, 0 deletions