Open mordae opened 2 years ago
Alternative LazyByteString
to LazyText
seems significantly faster, but I have only measured the situation after text-2.0
. It could have been totally different before.
I believe that since we are picking a default of sorts for the user, we should make sure to pick the best conversion approach and this choice should be informed -- at least a little -- by some measurements.
For easy to grok HTML output use:
cabal run bench -- -o benchmark.html
They measure almost all possible combinations of conversions for short, medium and large strings. String conversions were omitted, because they are by definition always hopelessly slow.