on develop help sign in
Add a TODO to improve the performance of the static builder
d6e605fDaniel Haraj
src/Reflex/Dom/Builder/Static.hs+1
@@ -171,6 +171,7 @@ instance (Reflex t, MonadAdjust t m, MonadHold t m) => MonadAdjust t (StaticDomB
171 sample o
171 sample o
172 return (result0, result')
172 return (result0, result')
173
173
174+-- TODO: the uses of illegal lenses in this instance causes it to be somewhat less efficient than it can be. replacing them with explicit cases to get the underlying Maybe Event and working with those is ideal.
174instance SupportsStaticDomBuilder t m => DomBuilder t (StaticDomBuilderT t m) where
175instance SupportsStaticDomBuilder t m => DomBuilder t (StaticDomBuilderT t m) where
175 type DomBuilderSpace (StaticDomBuilderT t m) = StaticDomSpace
176 type DomBuilderSpace (StaticDomBuilderT t m) = StaticDomSpace
176 {-# INLINABLE textNode #-}
177 {-# INLINABLE textNode #-}