{"action":"opened","number":3769,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769","id":48661552,"html_url":"https://github.com/D-Programming-Language/phobos/pull/3769","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3769.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3769.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3769","number":3769,"state":"open","locked":false,"title":"std.conv: improve toChars() performance","user":{"login":"WalterBright","id":568298,"avatar_url":"https://avatars.githubusercontent.com/u/568298?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterBright","html_url":"https://github.com/WalterBright","followers_url":"https://api.github.com/users/WalterBright/followers","following_url":"https://api.github.com/users/WalterBright/following{/other_user}","gists_url":"https://api.github.com/users/WalterBright/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterBright/subscriptions","organizations_url":"https://api.github.com/users/WalterBright/orgs","repos_url":"https://api.github.com/users/WalterBright/repos","events_url":"https://api.github.com/users/WalterBright/events{/privacy}","received_events_url":"https://api.github.com/users/WalterBright/received_events","type":"User","site_admin":false},"body":"Some ideas inspired by Andrei's optimization talks:\r\n\r\n1. fast path for one digit conversions\r\n2. reduce number of expensive divides by one for each conversion\r\n3. uints are faster than ulongs\r\n4. uints are faster than bytes\r\n5. use `=void` for unnecessary initializations\r\n6. schedule `--i` to avoid data dependency\r\n\r\nWorthwhile due to the ubiquity of these sorts of conversions.","created_at":"2015-10-24T18:03:21Z","updated_at":"2015-10-24T18:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3769/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/8f108f4c9bcbfd27a9327020e77d090bfdb59191","head":{"label":"WalterBright:opttochars","ref":"opttochars","sha":"8f108f4c9bcbfd27a9327020e77d090bfdb59191","user":{"login":"WalterBright","id":568298,"avatar_url":"https://avatars.githubusercontent.com/u/568298?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterBright","html_url":"https://github.com/WalterBright","followers_url":"https://api.github.com/users/WalterBright/followers","following_url":"https://api.github.com/users/WalterBright/following{/other_user}","gists_url":"https://api.github.com/users/WalterBright/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterBright/subscriptions","organizations_url":"https://api.github.com/users/WalterBright/orgs","repos_url":"https://api.github.com/users/WalterBright/repos","events_url":"https://api.github.com/users/WalterBright/events{/privacy}","received_events_url":"https://api.github.com/users/WalterBright/received_events","type":"User","site_admin":false},"repo":{"id":7236335,"name":"phobos","full_name":"WalterBright/phobos","owner":{"login":"WalterBright","id":568298,"avatar_url":"https://avatars.githubusercontent.com/u/568298?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterBright","html_url":"https://github.com/WalterBright","followers_url":"https://api.github.com/users/WalterBright/followers","following_url":"https://api.github.com/users/WalterBright/following{/other_user}","gists_url":"https://api.github.com/users/WalterBright/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterBright/subscriptions","organizations_url":"https://api.github.com/users/WalterBright/orgs","repos_url":"https://api.github.com/users/WalterBright/repos","events_url":"https://api.github.com/users/WalterBright/events{/privacy}","received_events_url":"https://api.github.com/users/WalterBright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WalterBright/phobos","description":"The standard library of the D programming language","fork":true,"url":"https://api.github.com/repos/WalterBright/phobos","forks_url":"https://api.github.com/repos/WalterBright/phobos/forks","keys_url":"https://api.github.com/repos/WalterBright/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WalterBright/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WalterBright/phobos/teams","hooks_url":"https://api.github.com/repos/WalterBright/phobos/hooks","issue_events_url":"https://api.github.com/repos/WalterBright/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/WalterBright/phobos/events","assignees_url":"https://api.github.com/repos/WalterBright/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/WalterBright/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/WalterBright/phobos/tags","blobs_url":"https://api.github.com/repos/WalterBright/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WalterBright/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WalterBright/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/WalterBright/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WalterBright/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/WalterBright/phobos/languages","stargazers_url":"https://api.github.com/repos/WalterBright/phobos/stargazers","contributors_url":"https://api.github.com/repos/WalterBright/phobos/contributors","subscribers_url":"https://api.github.com/repos/WalterBright/phobos/subscribers","subscription_url":"https://api.github.com/repos/WalterBright/phobos/subscription","commits_url":"https://api.github.com/repos/WalterBright/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/WalterBright/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/WalterBright/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/WalterBright/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/WalterBright/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/WalterBright/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WalterBright/phobos/merges","archive_url":"https://api.github.com/repos/WalterBright/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WalterBright/phobos/downloads","issues_url":"https://api.github.com/repos/WalterBright/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/WalterBright/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/WalterBright/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/WalterBright/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WalterBright/phobos/labels{/name}","releases_url":"https://api.github.com/repos/WalterBright/phobos/releases{/id}","created_at":"2012-12-19T06:55:07Z","updated_at":"2015-08-06T22:27:16Z","pushed_at":"2015-10-24T17:59:08Z","git_url":"git://github.com/WalterBright/phobos.git","ssh_url":"git@github.com:WalterBright/phobos.git","clone_url":"https://github.com/WalterBright/phobos.git","svn_url":"https://github.com/WalterBright/phobos","homepage":"dlang.org/phobos","size":48163,"stargazers_count":3,"watchers_count":3,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"7de99945760b5da7f075fdc10d553a1ca259a327","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257084,"name":"phobos","full_name":"D-Programming-Language/phobos","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/phobos","description":"The standard library of the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/phobos","forks_url":"https://api.github.com/repos/D-Programming-Language/phobos/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/phobos/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/phobos/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/phobos/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/phobos/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/phobos/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/phobos/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/phobos/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/phobos/releases{/id}","created_at":"2011-01-15T07:00:06Z","updated_at":"2015-10-23T23:59:33Z","pushed_at":"2015-10-24T15:52:23Z","git_url":"git://github.com/D-Programming-Language/phobos.git","ssh_url":"git@github.com:D-Programming-Language/phobos.git","clone_url":"https://github.com/D-Programming-Language/phobos.git","svn_url":"https://github.com/D-Programming-Language/phobos","homepage":"dlang.org/phobos","size":92947,"stargazers_count":636,"watchers_count":636,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":425,"mirror_url":null,"open_issues_count":72,"forks":425,"open_issues":72,"watchers":636,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3769"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3769"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3769/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3769/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/8f108f4c9bcbfd27a9327020e77d090bfdb59191"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":12,"changed_files":1}}