{"action":"opened","issue":{"url":"https://api.github.com/repos/paritytech/wasmi/issues/100","repository_url":"https://api.github.com/repos/paritytech/wasmi","labels_url":"https://api.github.com/repos/paritytech/wasmi/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/wasmi/issues/100/comments","events_url":"https://api.github.com/repos/paritytech/wasmi/issues/100/events","html_url":"https://github.com/paritytech/wasmi/issues/100","id":334144952,"node_id":"MDU6SXNzdWUzMzQxNDQ5NTI=","number":100,"title":"Optimization: Use compact encoding of bytecode","user":{"login":"pepyakin","id":2205845,"node_id":"MDQ6VXNlcjIyMDU4NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/2205845?v=4","gravatar_id":"","url":"https://api.github.com/users/pepyakin","html_url":"https://github.com/pepyakin","followers_url":"https://api.github.com/users/pepyakin/followers","following_url":"https://api.github.com/users/pepyakin/following{/other_user}","gists_url":"https://api.github.com/users/pepyakin/gists{/gist_id}","starred_url":"https://api.github.com/users/pepyakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepyakin/subscriptions","organizations_url":"https://api.github.com/users/pepyakin/orgs","repos_url":"https://api.github.com/users/pepyakin/repos","events_url":"https://api.github.com/users/pepyakin/events{/privacy}","received_events_url":"https://api.github.com/users/pepyakin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T15:59:34Z","updated_at":"2018-06-20T15:59:34Z","closed_at":null,"author_association":"COLLABORATOR","body":"For now, every instruction is represented by an enum value. It means that each instruction occupies size required for a tag (usize, 8 bytes on x86_64) plus a size of the instruction that has the largest payload (probably `BrTable`). Now each instruction occupies about 24 bytes, even though most instructions are 1 byte wide.\r\n\r\nFortunately, we don't need to address instructions by an index and can iterate them sequentially, and branches can specify the exact byte offset for their target.\r\n\r\nShrinking the size of one instruction will allow us to use cache more efficiently and also will reduce memory overhead greatly.\r\n\r\n"}}
{"actor":{"display_login":"pepyakin"}}