{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14414","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14414/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14414/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14414/events","html_url":"https://github.com/JuliaLang/julia/pull/14414","id":122302976,"number":14414,"title":"Widen small integers only to Int32, not Int","user":{"login":"eschnett","id":213514,"avatar_url":"https://avatars.githubusercontent.com/u/213514?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnett","html_url":"https://github.com/eschnett","followers_url":"https://api.github.com/users/eschnett/followers","following_url":"https://api.github.com/users/eschnett/following{/other_user}","gists_url":"https://api.github.com/users/eschnett/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnett/subscriptions","organizations_url":"https://api.github.com/users/eschnett/orgs","repos_url":"https://api.github.com/users/eschnett/repos","events_url":"https://api.github.com/users/eschnett/events{/privacy}","received_events_url":"https://api.github.com/users/eschnett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-15T15:55:14Z","updated_at":"2015-12-16T00:59:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/14414","html_url":"https://github.com/JuliaLang/julia/pull/14414","diff_url":"https://github.com/JuliaLang/julia/pull/14414.diff","patch_url":"https://github.com/JuliaLang/julia/pull/14414.patch"},"body":"Reasons, as described in #14407:\r\n- 32-bit integer division is significantly faster than 64-bit integer division.\r\n- Consistency across platforms (widen(Int(8)) will do the same thing on 32 & 64 bit)\r\n- Smaller integers can have larger gains from vectorization\r\n\r\nChanges:\r\n- Widen small integers only to Int32, not Int\r\n- Ensure that `widen` tests actually check the result type, not just the value.\r\n- Update tests.\r\n- No documentation update necessary since the actual return type is left unspecified.\r\n\r\nCloses #14407."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/164949738","html_url":"https://github.com/JuliaLang/julia/pull/14414#issuecomment-164949738","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/14414","id":164949738,"user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T00:59:52Z","updated_at":"2015-12-16T00:59:52Z","body":"How many places does `widen` get used? Just trying to get a sense what this might break."}}