{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/10011","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/10011/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/10011/comments","events_url":"https://api.github.com/repos/apple/swift/issues/10011/events","html_url":"https://github.com/apple/swift/pull/10011","id":232719644,"number":10011,"title":"[4.0] Add a size heuristic to the Space Engine","user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars0.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tkremenek","id":3087023,"avatar_url":"https://avatars3.githubusercontent.com/u/3087023?v=3","gravatar_id":"","url":"https://api.github.com/users/tkremenek","html_url":"https://github.com/tkremenek","followers_url":"https://api.github.com/users/tkremenek/followers","following_url":"https://api.github.com/users/tkremenek/following{/other_user}","gists_url":"https://api.github.com/users/tkremenek/gists{/gist_id}","starred_url":"https://api.github.com/users/tkremenek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkremenek/subscriptions","organizations_url":"https://api.github.com/users/tkremenek/orgs","repos_url":"https://api.github.com/users/tkremenek/repos","events_url":"https://api.github.com/users/tkremenek/events{/privacy}","received_events_url":"https://api.github.com/users/tkremenek/received_events","type":"User","site_admin":false},"assignees":[{"login":"tkremenek","id":3087023,"avatar_url":"https://avatars3.githubusercontent.com/u/3087023?v=3","gravatar_id":"","url":"https://api.github.com/users/tkremenek","html_url":"https://github.com/tkremenek","followers_url":"https://api.github.com/users/tkremenek/followers","following_url":"https://api.github.com/users/tkremenek/following{/other_user}","gists_url":"https://api.github.com/users/tkremenek/gists{/gist_id}","starred_url":"https://api.github.com/users/tkremenek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkremenek/subscriptions","organizations_url":"https://api.github.com/users/tkremenek/orgs","repos_url":"https://api.github.com/users/tkremenek/repos","events_url":"https://api.github.com/users/tkremenek/events{/privacy}","received_events_url":"https://api.github.com/users/tkremenek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-05-31T22:50:21Z","updated_at":"2017-06-01T02:16:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/10011","html_url":"https://github.com/apple/swift/pull/10011","diff_url":"https://github.com/apple/swift/pull/10011.diff","patch_url":"https://github.com/apple/swift/pull/10011.patch"},"body":"• Explanation: Type checking switch statements looking for exhaustive patterns is a potentially factorial process.  Introduce a reasonable size limit to fall back to a linear-time heuristic instead of the full check.\r\n• Scope of Issue:  A large enough switch over a large enough enum case can cause the compiler to hang for hours computing a fixit.\r\n• Origination: Noticed by Harlan Haskins while TableGen’ing a very very large enum and a similarly enormous switch statement .\r\n• Risk: Low. \r\n• Reviewed By: Xi Ge, Joe Groff\r\n• Testing: New regression tests added, confirmed locally that the patch resolves Harlan’s original issue.\r\n• Directions for QE: (Optional) Verify with the test case in the patch.\r\n• Radar URL: rdar://32480026\r\n"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/305370052","html_url":"https://github.com/apple/swift/pull/10011#issuecomment-305370052","issue_url":"https://api.github.com/repos/apple/swift/issues/10011","id":305370052,"user":{"login":"CodaFi","id":1896383,"avatar_url":"https://avatars0.githubusercontent.com/u/1896383?v=3","gravatar_id":"","url":"https://api.github.com/users/CodaFi","html_url":"https://github.com/CodaFi","followers_url":"https://api.github.com/users/CodaFi/followers","following_url":"https://api.github.com/users/CodaFi/following{/other_user}","gists_url":"https://api.github.com/users/CodaFi/gists{/gist_id}","starred_url":"https://api.github.com/users/CodaFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodaFi/subscriptions","organizations_url":"https://api.github.com/users/CodaFi/orgs","repos_url":"https://api.github.com/users/CodaFi/repos","events_url":"https://api.github.com/users/CodaFi/events{/privacy}","received_events_url":"https://api.github.com/users/CodaFi/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T02:16:22Z","updated_at":"2017-06-01T02:16:22Z","body":"@swift-ci please test source compatibility"}}
{"actor":{"display_login":"CodaFi"}}