Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have there been any performance improvements under Firefox? Almost every Elm demo that I've seen so far has been basically unusable under that browser. I've been told that the issue is some difference between Chrome and FF with canvas drawing... but regardless of where the fault lies, Elm is pretty much a Chrome-only technology until that gets worked out.


Someone please correct me if I am wrong but I believe the answer is yes. I believe this is the relevant PR:

https://github.com/elm-lang/core/pull/25

I believe the original improvements were done here: https://github.com/jwmerrill/elm-animation-frame

I modified a game I wrote to use the modified run time. I can see a huge difference between the two in Firefox.

Unmodified: http://jcollard.github.io/elm-flyer-old/

Modified: http://jcollard.github.io/elm-flyer/


Author of that PR here. It may help Firefox some, but in my experiments I'm still seeing that driving canvas animations with Elm performs much better in Chrome than in Firefox.

If there are any Firefox engineers reading this, maybe there is a good benchmark to be extracted out of this observation? I'd be interested in discussing this with someone. Feel free to reach out at the e-mail address in my profile.


Yeah, this is in for 0.14. I forgot to mention it in the announcement, but Jason deserves a huge thank you for this improvement!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: