aboutsummaryrefslogtreecommitdiff
path: root/tests/test-lorem-optimum.el
Commit message (Collapse)AuthorAgeFilesLines
* perf(lorem-optimum): speed up the Markov generation pathCraig Jennings2026-05-111-0/+9
| | | | `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.
* Revert "checking in modified/removed tests and other misc changes"Craig Jennings2025-11-141-0/+242
| | | | This reverts commit d36afc3f277b9a4228eb7b2464ec4e503695b8d4.
* checking in modified/removed tests and other misc changesCraig Jennings2025-11-141-242/+0
|
* feat:text-generation: improve and rename lorem generatorCraig Jennings2025-10-261-0/+242
Rename `lorem-generator.el` to `lorem-optimum.el` for fun. Enhance text tokenization, Markov chain learning, and text generation functions. Introduce new configuration variables for training files and improve efficiency with vectorized access. Add comprehensive benchmarks and unit tests under `tests/`. This improves performance and lays groundwork for further extensions.