Skip to content

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.

3 participants