{"action":"created","issue":{"url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/1","labels_url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/1/comments","events_url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/1/events","html_url":"https://github.com/brockwhittaker/AltCanvas/issues/1","id":113174341,"number":1,"title":"Benchmark / Stress Test ?","user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars.githubusercontent.com/u/179677?v=3","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-24T17:52:37Z","updated_at":"2015-10-25T04:58:13Z","closed_at":"2015-10-25T04:58:13Z","body":"I can see at least one place where it should be possible to optimise this, but first would it be possible to provide some sort of benchmark / stress test?\r\n\r\nThat way it will be possible to know if optimisations actually improve things.\r\n\r\nI'd imagine some sort of test harness that does something like - set the random seed to a known value, then draw 1000 random rectangles, do the same for 10000 pixels.  + time both."},"comment":{"url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/comments/150891918","html_url":"https://github.com/brockwhittaker/AltCanvas/issues/1#issuecomment-150891918","issue_url":"https://api.github.com/repos/brockwhittaker/AltCanvas/issues/1","id":150891918,"user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars.githubusercontent.com/u/179677?v=3","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T04:58:13Z","updated_at":"2015-10-25T04:58:13Z","body":"So I had a go at pre-making the base64 \"pixels\"...  and adding these to the end of this.file, but it seemed to slow things down... I guess all the calls to btoa were more of an overhead.\r\n\r\nYou could add stuff like dirty rect tracking, but I'm not sure it would speed things up.\r\n\r\nSo this your code is pretty fast already :D so I'll close this."}}