{"action":"created","issue":{"url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/1","labels_url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/1/comments","events_url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/1/events","html_url":"https://github.com/fitzgen/inlinable_string/pull/1","id":119870342,"number":1,"title":"Decrease size of structure InlinableString","user":{"login":"defuz","id":276041,"avatar_url":"https://avatars.githubusercontent.com/u/276041?v=3","gravatar_id":"","url":"https://api.github.com/users/defuz","html_url":"https://github.com/defuz","followers_url":"https://api.github.com/users/defuz/followers","following_url":"https://api.github.com/users/defuz/following{/other_user}","gists_url":"https://api.github.com/users/defuz/gists{/gist_id}","starred_url":"https://api.github.com/users/defuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defuz/subscriptions","organizations_url":"https://api.github.com/users/defuz/orgs","repos_url":"https://api.github.com/users/defuz/repos","events_url":"https://api.github.com/users/defuz/events{/privacy}","received_events_url":"https://api.github.com/users/defuz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T05:26:17Z","updated_at":"2015-12-02T07:21:43Z","closed_at":"2015-12-02T06:19:21Z","pull_request":{"url":"https://api.github.com/repos/fitzgen/inlinable_string/pulls/1","html_url":"https://github.com/fitzgen/inlinable_string/pull/1","diff_url":"https://github.com/fitzgen/inlinable_string/pull/1.diff","patch_url":"https://github.com/fitzgen/inlinable_string/pull/1.patch"},"body":"This PR decrease size of `InlinableString` structure:\r\n- from 48 to 32 bytes for 64 arch\r\n- from 40 to 16 bytes for 32 arch.\r\n\r\nThere are two optimization:\r\n\r\n1. Using `u8` instead of `usize` for storing inline length\r\n2. Change inline capacity from 32 bytes to 30 bytes for 64 arch and to 14 bytes for 32 arch to fit exactly into `String` size + 1 byte (discriminant) + alignment.\r\n\r\nSee detailed explanation into my [Reddit comment](https://www.reddit.com/r/rust/comments/3v2uzv/inlinable_string_a_dropin_replacement_for/cxk0p6b)."},"comment":{"url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/comments/161205355","html_url":"https://github.com/fitzgen/inlinable_string/pull/1#issuecomment-161205355","issue_url":"https://api.github.com/repos/fitzgen/inlinable_string/issues/1","id":161205355,"user":{"login":"defuz","id":276041,"avatar_url":"https://avatars.githubusercontent.com/u/276041?v=3","gravatar_id":"","url":"https://api.github.com/users/defuz","html_url":"https://github.com/defuz","followers_url":"https://api.github.com/users/defuz/followers","following_url":"https://api.github.com/users/defuz/following{/other_user}","gists_url":"https://api.github.com/users/defuz/gists{/gist_id}","starred_url":"https://api.github.com/users/defuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defuz/subscriptions","organizations_url":"https://api.github.com/users/defuz/orgs","repos_url":"https://api.github.com/users/defuz/repos","events_url":"https://api.github.com/users/defuz/events{/privacy}","received_events_url":"https://api.github.com/users/defuz/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T07:21:43Z","updated_at":"2015-12-02T07:21:43Z","body":"You're welcome! I am writing text editor on Rust and I think that your library will be very helpful. :)"}}