blaze-markup
blaze-markup copied to clipboard
StaticString benchmark
While reading the code I started wondering, if you have some data or at least first hand expriences of the speedup provided by the StaticString type? It seems you want to shift as much processing of all the literal tags and comments to compile time.
Some more insight would be appreciated!
Thx
The idea is actually fairly simple. Since we don't know as which type (ByteString/String/Text...) the user is going to render the final output, we want to prepare for all cases. This means we don't have to do any conversions on the fly (as we have to do for user-supplied strings).