-
Notifications
You must be signed in to change notification settings - Fork 44
Description
So, while I was working on Graphics Engine (my 3d engine based on elm-webgl), I realized that Lists were very slow as an internal representation for my scene objects. Switching to Array gave me a HUGE performance boost (which was kinda unexpected cuz I tested on pong, which has just 4 scene objects: 2 paddles, 1 ball, and 1 background).
But to do that, I have to call toList at one point so that I may pass the data onto webgl as it expects a List Entity as its argument.
It would be nice if there were a version where I could pass an Array Entity instead. I'm not saying this to save me from writing one word. I'm wondering if this would bring a nice speed-up to elm-webgl. At the very least, it would be nice to test the two functions side by side on the same exact code to see if there's a noticeable difference.