{"action":"created","issue":{"url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/15","labels_url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/15/comments","events_url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/15/events","html_url":"https://github.com/johnpmayer/elm-webgl/issues/15","id":54681099,"number":15,"title":"Add/Test/Change native support for passing arrays of Entity to webgl","user":{"login":"TheSeamau5","id":3227869,"avatar_url":"https://avatars.githubusercontent.com/u/3227869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSeamau5","html_url":"https://github.com/TheSeamau5","followers_url":"https://api.github.com/users/TheSeamau5/followers","following_url":"https://api.github.com/users/TheSeamau5/following{/other_user}","gists_url":"https://api.github.com/users/TheSeamau5/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSeamau5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSeamau5/subscriptions","organizations_url":"https://api.github.com/users/TheSeamau5/orgs","repos_url":"https://api.github.com/users/TheSeamau5/repos","events_url":"https://api.github.com/users/TheSeamau5/events{/privacy}","received_events_url":"https://api.github.com/users/TheSeamau5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-18T00:27:13Z","updated_at":"2015-01-21T22:50:35Z","closed_at":null,"body":"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). \r\n\r\nBut 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.\r\n\r\nIt 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."},"comment":{"url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/comments/70938392","html_url":"https://github.com/johnpmayer/elm-webgl/issues/15#issuecomment-70938392","issue_url":"https://api.github.com/repos/johnpmayer/elm-webgl/issues/15","id":70938392,"user":{"login":"TheSeamau5","id":3227869,"avatar_url":"https://avatars.githubusercontent.com/u/3227869?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSeamau5","html_url":"https://github.com/TheSeamau5","followers_url":"https://api.github.com/users/TheSeamau5/followers","following_url":"https://api.github.com/users/TheSeamau5/following{/other_user}","gists_url":"https://api.github.com/users/TheSeamau5/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSeamau5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSeamau5/subscriptions","organizations_url":"https://api.github.com/users/TheSeamau5/orgs","repos_url":"https://api.github.com/users/TheSeamau5/repos","events_url":"https://api.github.com/users/TheSeamau5/events{/privacy}","received_events_url":"https://api.github.com/users/TheSeamau5/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T22:50:35Z","updated_at":"2015-01-21T22:50:35Z","body":"Ok, cool. I'll try it out. I noticed that the js code just calls `List.map`, so, hopefully the changes will be minimal. I'll let you know as soon as I'm done."}}