{"action":"created","issue":{"url":"https://api.github.com/repos/Zomis/BrainDuck/issues/4","labels_url":"https://api.github.com/repos/Zomis/BrainDuck/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Zomis/BrainDuck/issues/4/comments","events_url":"https://api.github.com/repos/Zomis/BrainDuck/issues/4/events","html_url":"https://github.com/Zomis/BrainDuck/issues/4","id":93055120,"number":4,"title":"Code Analysis and optimization","user":{"login":"Zomis","id":1405379,"avatar_url":"https://avatars.githubusercontent.com/u/1405379?v=3","gravatar_id":"","url":"https://api.github.com/users/Zomis","html_url":"https://github.com/Zomis","followers_url":"https://api.github.com/users/Zomis/followers","following_url":"https://api.github.com/users/Zomis/following{/other_user}","gists_url":"https://api.github.com/users/Zomis/gists{/gist_id}","starred_url":"https://api.github.com/users/Zomis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zomis/subscriptions","organizations_url":"https://api.github.com/users/Zomis/orgs","repos_url":"https://api.github.com/users/Zomis/repos","events_url":"https://api.github.com/users/Zomis/events{/privacy}","received_events_url":"https://api.github.com/users/Zomis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T22:55:55Z","updated_at":"2015-09-06T19:00:56Z","closed_at":null,"body":"First of all, remember that the only thing that can change a Brainfuck program behavior is user-input, with the `,` Brainfuck command.\r\n\r\n- [x] Scan for how many times loops are executed. Find out if some loops are only executed specific number of times, possibly expand them.\r\n- [ ] Avoid taking unnecessary turns, for example:\r\n\r\n        right 2 minus 1 left 1 inc 1 right 1\r\n\r\n  which equals to `>>-<+>` can become simply `>+>-`\r\n\r\nOptimize some things for speed (number of instructions being performed when running), optimize some things for code compactness."},"comment":{"url":"https://api.github.com/repos/Zomis/BrainDuck/issues/comments/138114649","html_url":"https://github.com/Zomis/BrainDuck/issues/4#issuecomment-138114649","issue_url":"https://api.github.com/repos/Zomis/BrainDuck/issues/4","id":138114649,"user":{"login":"Zomis","id":1405379,"avatar_url":"https://avatars.githubusercontent.com/u/1405379?v=3","gravatar_id":"","url":"https://api.github.com/users/Zomis","html_url":"https://github.com/Zomis","followers_url":"https://api.github.com/users/Zomis/followers","following_url":"https://api.github.com/users/Zomis/following{/other_user}","gists_url":"https://api.github.com/users/Zomis/gists{/gist_id}","starred_url":"https://api.github.com/users/Zomis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zomis/subscriptions","organizations_url":"https://api.github.com/users/Zomis/orgs","repos_url":"https://api.github.com/users/Zomis/repos","events_url":"https://api.github.com/users/Zomis/events{/privacy}","received_events_url":"https://api.github.com/users/Zomis/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T19:00:56Z","updated_at":"2015-09-06T19:00:56Z","body":" - [ ] Track which memory positions are used or not"}}