It's specific to the virtual dom. Events are triggered as normal, but the 
code that renders the view is only called with the latest state once per 
frame.

lørdag 19. november 2016 15.51.56 UTC+1 skrev Matthieu Pizenberg følgende:
>
> Hi everyone,
>
> I am currently developing some functionality that get triggered on 
> mousemove. I do not have any speed issue now so I am not trying to optimize 
> things that do not need optimization right now ^^. But this work made me 
> curious about how code is optimized in elm. In this blog post [1] 
> <http://elm-lang.org/blog/blazing-fast-html-round-two> Evan says that Elm 
> uses requestAnimationFrame by default. I wonder what this means. Does this 
> mean that all events are "filtered" to trigger only once per frame ? (for 
> example the mousemove?) or is it specific to virtualdom since this post was 
> about that. If not, what do you think would be a suitable strategy?
>
> [1] http://elm-lang.org/blog/blazing-fast-html-round-two
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to