blaze-markup icon indicating copy to clipboard operation
blaze-markup copied to clipboard

StaticString benchmark

Open johannesgerer opened this issue 11 years ago • 1 comments

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

johannesgerer avatar Jun 16 '14 14:06 johannesgerer

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).

jaspervdj avatar Aug 25 '14 08:08 jaspervdj