On Mon, Dec 15, 2014 at 4:15 AM, <jwmerr...@gmail.com> wrote: > >> Any idea why Elm is so super garbage heavy? >> Sounds like it needs some optimizations. > > I don't know how to quantify "super garbage heavy" yet. If you work really > really hard, you can avoid per-frame allocation completely. But Elm > definitely doesn't try to do that: at the very least, it creates a completely > new internal representation of the "scene" on every frame.
I suspect you just answered your own question. If Elm is creating lots of short-lived objects and/or strings then it will stress the garbage collector. A "scene" sounds like something that might contain lots of objects, and creating a new one for every frame sounds like the very definition of "short-lived" :) Nick _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals