aboutsummaryrefslogtreecommitdiff
path: root/scripts/setup-email.sh
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
commit392fad9ae599aaaebdcba60c56263bc438a1b482 (patch)
treecc4a86ada9d06050b3176a2da664646c44b16242 /scripts/setup-email.sh
parent742432d2c493fe853a4cdb4055da8ef5d7399408 (diff)
downloaddotemacs-392fad9ae599aaaebdcba60c56263bc438a1b482.tar.gz
dotemacs-392fad9ae599aaaebdcba60c56263bc438a1b482.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 'scripts/setup-email.sh')
0 files changed, 0 insertions, 0 deletions