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

Drop blaze #1995

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Drop blaze #1995

wants to merge 2 commits into from

Conversation

mpscholten
Copy link
Member

@mpscholten mpscholten commented Aug 2, 2024

This branch implement HSX without blaze. In theory HSX can be optimized a lot further because blaze has a lot of indirection in it's data structures (e.g. to support multiple string types).

@amitaibu
Copy link
Collaborator

amitaibu commented Aug 5, 2024

Is the idea that since we only support Text, we are able to simplify the implementation? Is the difference significant?

@mpscholten
Copy link
Member Author

Yep, and with the simple implementation GHC can optimize hsx expressions better. This results in less memory usage and faster runtime performance (we should do a benchmark to figure out how significant the difference is).

Ideally we switch from Text to https://hackage.haskell.org/package/mason which provides even faster string concatenation.

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

Successfully merging this pull request may close these issues.

2 participants