reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
720 stars 164 forks source link

Consider requestAnimationFrame doc explanation #29

Closed GetContented closed 9 years ago

GetContented commented 9 years ago

In considering reflex DOM, I'd really like to know if you use requestAnimationFrame to batch your updates, or if you do them directly. I have an app which uses ClojureScript, Reagent and therefore ReactJS, and Reagent uses a requestAnimationFrame batching for efficiency reasons.

Have you done performance tests with thousands of components passing data on the same page? My app has this context.

It's my aim to migrate the app that runs our content management system to purely be written in Haskell, but I'd like to know whether it'll run performantly in Reflex-DOM before I consider it.

Also what's the debugging story like in Reflex-DOM? (Meaning, if something odd happens in the DOM, does it report error messages nicely so that one can track down which component has done something weird if that's the case? Or are these kinds of errors just not an issue?)

ryantrinkle commented 9 years ago

Hi @GetContented,

GetContented commented 9 years ago

Hi Ryan. Thanks so much for your response. I guess I'll just have to give it a try :) (Which may take some time, given my app is written half in ClojureScript, half in Ruby! LOL)

My app sometimes loads sets of hundreds of items of data from the backend, then updates the view. All good, though.