There are three major performance optimizations I want to do for elm-css
:
- Move the compatibility checks to a phantom type, so they no longer have runtime overhead.
- Hash things more efficiently. Plenty of room for improvement there.
- Use
insertRule
. This is on Evan’s radar, and he’s talked through some API ideas with me.style-elements
would benefit frominsertRule
too.
In the vein of Make it Work, Make it Right, Make it Fast, the current elm-css
API has gotten positive responses on its working and working right, so it makes sense to start shifting focus to performance!