{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/5938","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/5938/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/5938/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/5938/events","html_url":"https://github.com/facebook/hhvm/pull/5938","id":101117684,"number":5938,"title":"Transform SSwitch opcodes on single characters into Switch opcodes","user":{"login":"Orvid","id":709247,"avatar_url":"https://avatars.githubusercontent.com/u/709247?v=3","gravatar_id":"","url":"https://api.github.com/users/Orvid","html_url":"https://github.com/Orvid","followers_url":"https://api.github.com/users/Orvid/followers","following_url":"https://api.github.com/users/Orvid/following{/other_user}","gists_url":"https://api.github.com/users/Orvid/gists{/gist_id}","starred_url":"https://api.github.com/users/Orvid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orvid/subscriptions","organizations_url":"https://api.github.com/users/Orvid/orgs","repos_url":"https://api.github.com/users/Orvid/repos","events_url":"https://api.github.com/users/Orvid/events{/privacy}","received_events_url":"https://api.github.com/users/Orvid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-14T22:47:11Z","updated_at":"2015-10-07T00:12:54Z","closed_at":"2015-10-07T00:12:54Z","pull_request":{"url":"https://api.github.com/repos/facebook/hhvm/pulls/5938","html_url":"https://github.com/facebook/hhvm/pull/5938","diff_url":"https://github.com/facebook/hhvm/pull/5938.diff","patch_url":"https://github.com/facebook/hhvm/pull/5938.patch"},"body":"I have no idea if there's a better place for this, but I did want it to be after all possible constant propagation, etc, as this is a transformation of the bytecode, and not in a way that would prevent or allow other optimizations.\r\nThe goal of this is to transform the `SSwitch` opcode generated for switches on a single character into `Switch` opcodes, which are significantly faster.\r\n\r\nAnd yes, I know there are other things that would produce an even bigger speed improvement in the test code, especially for large strings, but that's not the goal of this PR."},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/146040894","html_url":"https://github.com/facebook/hhvm/pull/5938#issuecomment-146040894","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/5938","id":146040894,"user":{"login":"Orvid","id":709247,"avatar_url":"https://avatars.githubusercontent.com/u/709247?v=3","gravatar_id":"","url":"https://api.github.com/users/Orvid","html_url":"https://github.com/Orvid","followers_url":"https://api.github.com/users/Orvid/followers","following_url":"https://api.github.com/users/Orvid/following{/other_user}","gists_url":"https://api.github.com/users/Orvid/gists{/gist_id}","starred_url":"https://api.github.com/users/Orvid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orvid/subscriptions","organizations_url":"https://api.github.com/users/Orvid/orgs","repos_url":"https://api.github.com/users/Orvid/repos","events_url":"https://api.github.com/users/Orvid/events{/privacy}","received_events_url":"https://api.github.com/users/Orvid/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T00:12:54Z","updated_at":"2015-10-07T00:12:54Z","body":"Closing until I get around to rewriting it."}}