It seems that the simple `println!()` is really bad when the goal is to write a lot of data to stdout. Presumably because it's unbuffered, but also because it required the preceding code to do a lot of allocations. This was replaced with a buffered writer on stdout, as well as an extra `Vec<u8>` that I can write everything to directly from the word and delimiter iterators, without allocating a single new structure. |
||
---|---|---|
.. | ||
dtmm | ||
dtmt |