on develop help sign in
Add a TODO to improve the performance of the static builder
commitd6e605ff79d1cdd51a39f14bbbbbbcf872515295 authorDaniel Haraj <dan@obsidian.systems> dateSat 28 Jan 2017, 20:45 (10 years ago) parentffbe01f
1 file changed+1
src/Reflex/Dom/Builder/Static.hs+1
src/Reflex/Dom/Builder/Static.hs+1
@@ -171,6 +171,7 @@ instance (Reflex t, MonadAdjust t m, MonadHold t m) => MonadAdjust t (StaticDomB
171171 sample o
172172 return (result0, result')
173173
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.
174175instance SupportsStaticDomBuilder t m => DomBuilder t (StaticDomBuilderT t m) where
175176 type DomBuilderSpace (StaticDomBuilderT t m) = StaticDomSpace
176177 {-# INLINABLE textNode #-}