ur0 / lolcat

lolcat, now with fearless concurrency.
MIT License
99 stars 14 forks source link

Intelligent wrap #26

Closed magnus-ISU closed 1 year ago

magnus-ISU commented 1 year ago

Simple performance checking indicates this is around 1.1 ± 0.2 times slower than before. I think it doesn't matter as much as the feature does, though.

I might investigate adding a flag for fast printing without that. The binary is already huge (from library code I think) so duplicating the functions a few times probably won't affect it too much.

I will also look into adding a flag for word wrapping, so that space-separated strings are always printed on the same line when possible. That seems useful for human-readable use. I'm not sure if I should make it default though - it will be probably be significantly slower.