{"action":"created","issue":{"url":"https://api.github.com/repos/zig-lang/zig/issues/986","repository_url":"https://api.github.com/repos/zig-lang/zig","labels_url":"https://api.github.com/repos/zig-lang/zig/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/zig-lang/zig/issues/986/comments","events_url":"https://api.github.com/repos/zig-lang/zig/issues/986/events","html_url":"https://github.com/zig-lang/zig/issues/986","id":320500525,"number":986,"title":"Add a small string optimization to Buf (C++ compiler code)","user":{"login":"alexnask","id":265903,"avatar_url":"https://avatars3.githubusercontent.com/u/265903?v=4","gravatar_id":"","url":"https://api.github.com/users/alexnask","html_url":"https://github.com/alexnask","followers_url":"https://api.github.com/users/alexnask/followers","following_url":"https://api.github.com/users/alexnask/following{/other_user}","gists_url":"https://api.github.com/users/alexnask/gists{/gist_id}","starred_url":"https://api.github.com/users/alexnask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexnask/subscriptions","organizations_url":"https://api.github.com/users/alexnask/orgs","repos_url":"https://api.github.com/users/alexnask/repos","events_url":"https://api.github.com/users/alexnask/events{/privacy}","received_events_url":"https://api.github.com/users/alexnask/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-05T11:04:30Z","updated_at":"2018-05-06T15:40:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This could be done by adding a small buffer optimization to all ZigLists (or through a template bool flag) or by creating a new representation for buffers instead of simply relying on ZigList.  \r\n\r\nThis optimization could reduce compile times by quite a bit by avoiding lots of allocations (since most buffers used in compiler code will probably fit in the small string representation)."},"comment":{"url":"https://api.github.com/repos/zig-lang/zig/issues/comments/386888470","html_url":"https://github.com/zig-lang/zig/issues/986#issuecomment-386888470","issue_url":"https://api.github.com/repos/zig-lang/zig/issues/986","id":386888470,"user":{"login":"alexnask","id":265903,"avatar_url":"https://avatars3.githubusercontent.com/u/265903?v=4","gravatar_id":"","url":"https://api.github.com/users/alexnask","html_url":"https://github.com/alexnask","followers_url":"https://api.github.com/users/alexnask/followers","following_url":"https://api.github.com/users/alexnask/following{/other_user}","gists_url":"https://api.github.com/users/alexnask/gists{/gist_id}","starred_url":"https://api.github.com/users/alexnask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexnask/subscriptions","organizations_url":"https://api.github.com/users/alexnask/orgs","repos_url":"https://api.github.com/users/alexnask/repos","events_url":"https://api.github.com/users/alexnask/events{/privacy}","received_events_url":"https://api.github.com/users/alexnask/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T15:40:13Z","updated_at":"2018-05-06T15:40:13Z","author_association":"CONTRIBUTOR","body":"My attempt is [here](https://github.com/zig-lang/zig/compare/master...alexnask:sbo?expand=1) but I've hit some bugs that I will have to correct at some other point.  \r\n\r\n(This implementation should be able to hold 23 byte buffers inline, including the null terminator) \r\n Once I get it up and running I'll post some stats on the number of allocations saved and the compile time benefits."}}
{"actor":{"display_login":"alexnask"}}