{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/526","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/526/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/526/events","html_url":"https://github.com/rust-lang/rfcs/pull/526","id":52003260,"number":526,"title":"RFC: Statically enforce Unicode in std::fmt","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2014-12-15T15:59:57Z","updated_at":"2015-01-07T04:34:52Z","closed_at":"2014-12-30T23:07:59Z","pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/526","html_url":"https://github.com/rust-lang/rfcs/pull/526","diff_url":"https://github.com/rust-lang/rfcs/pull/526.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/526.patch"},"body":"Statically enforce that the `std::fmt` module can only create valid UTF-8 data\r\nby removing the arbitrary `write` method in favor of a `write_str` method.\r\n\r\n[Rendered](https://github.com/alexcrichton/rfcs/blob/fmt-text-writer/text/0000-fmt-text-writer.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/68977964","html_url":"https://github.com/rust-lang/rfcs/pull/526#issuecomment-68977964","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/526","id":68977964,"user":{"login":"lfairy","id":1572323,"avatar_url":"https://avatars.githubusercontent.com/u/1572323?v=3","gravatar_id":"","url":"https://api.github.com/users/lfairy","html_url":"https://github.com/lfairy","followers_url":"https://api.github.com/users/lfairy/followers","following_url":"https://api.github.com/users/lfairy/following{/other_user}","gists_url":"https://api.github.com/users/lfairy/gists{/gist_id}","starred_url":"https://api.github.com/users/lfairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfairy/subscriptions","organizations_url":"https://api.github.com/users/lfairy/orgs","repos_url":"https://api.github.com/users/lfairy/repos","events_url":"https://api.github.com/users/lfairy/events{/privacy}","received_events_url":"https://api.github.com/users/lfairy/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T04:34:52Z","updated_at":"2015-01-07T04:34:52Z","body":"I notice that in the \"after\" benchmark, `.to_string()` is still about 3x slower for small strings. Can we do anything about the remaining overhead?"}}