{"action":"created","issue":{"url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/40","repository_url":"https://api.github.com/repos/AssemblyScript/assemblyscript","labels_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/40/comments","events_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/40/events","html_url":"https://github.com/AssemblyScript/assemblyscript/issues/40","id":304295935,"number":40,"title":"Debugging Performance","user":{"login":"torch2424","id":1448289,"avatar_url":"https://avatars1.githubusercontent.com/u/1448289?v=4","gravatar_id":"","url":"https://api.github.com/users/torch2424","html_url":"https://github.com/torch2424","followers_url":"https://api.github.com/users/torch2424/followers","following_url":"https://api.github.com/users/torch2424/following{/other_user}","gists_url":"https://api.github.com/users/torch2424/gists{/gist_id}","starred_url":"https://api.github.com/users/torch2424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch2424/subscriptions","organizations_url":"https://api.github.com/users/torch2424/orgs","repos_url":"https://api.github.com/users/torch2424/repos","events_url":"https://api.github.com/users/torch2424/events{/privacy}","received_events_url":"https://api.github.com/users/torch2424/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-12T09:31:19Z","updated_at":"2018-03-12T22:25:15Z","closed_at":"2018-03-12T22:24:36Z","author_association":"NONE","body":"Hello,\r\n\r\nFigured I'd ask here instead of Twitter, just so this is archived in some sort.\r\n\r\nSo, I'm reaching a point where performance is now my bottleneck on my [wasmBoy project](https://github.com/torch2424/wasmBoy) before moving onto the final major task :)\r\n\r\nBy using the chrome dev tools profiler, I can see that my main emulation Loop in wasm is on average taking about 14 seconds to run, which means I should probably work on optimizing that if I hope to reach the 16ms for 60fps.\r\n\r\nI'm currently building using the following CLI command: `npx asc wasm/index.ts -b dist/wasm/index.untouched.wasm -t dist/wasm/index.untouched.wast -O3z --validate --sourceMap --memoryBase 8861696 && echo \\\"Built Wasm!\\\"`.\r\n\r\nAnd here's a screenshot of my profile if that helps at all:\r\n\r\n![screen shot 2018-03-12 at 2 28 12 am](https://user-images.githubusercontent.com/1448289/37275703-2e922fb8-259d-11e8-8816-1e6f5f369074.png)\r\n\r\nI know the project is still very young, therefore performance is something that would be focused on much later. \r\n\r\nBut if you know any tips/tricks/hacks I could use to get this running a bit fast that would be awesome :). Especially any tips on running benchmarks through the source map or something.\r\n\r\nNo worries if not, I am sure I could manully go through and find things here and there, but yeah. Thanks! "},"comment":{"url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/comments/372483125","html_url":"https://github.com/AssemblyScript/assemblyscript/issues/40#issuecomment-372483125","issue_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/40","id":372483125,"user":{"login":"torch2424","id":1448289,"avatar_url":"https://avatars1.githubusercontent.com/u/1448289?v=4","gravatar_id":"","url":"https://api.github.com/users/torch2424","html_url":"https://github.com/torch2424","followers_url":"https://api.github.com/users/torch2424/followers","following_url":"https://api.github.com/users/torch2424/following{/other_user}","gists_url":"https://api.github.com/users/torch2424/gists{/gist_id}","starred_url":"https://api.github.com/users/torch2424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch2424/subscriptions","organizations_url":"https://api.github.com/users/torch2424/orgs","repos_url":"https://api.github.com/users/torch2424/repos","events_url":"https://api.github.com/users/torch2424/events{/privacy}","received_events_url":"https://api.github.com/users/torch2424/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T22:25:15Z","updated_at":"2018-03-12T22:25:15Z","author_association":"NONE","body":"Oops, I just closed this. Want me to re-open @MaxGraey ?"}}
{"actor":{"display_login":"torch2424"}}