Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StaticString benchmark #11

Open
johannesgerer opened this issue Jun 16, 2014 · 1 comment
Open

StaticString benchmark #11

johannesgerer opened this issue Jun 16, 2014 · 1 comment

Comments

@johannesgerer
Copy link

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

@jaspervdj
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants