{"action":"created","issue":{"url":"https://api.github.com/repos/square/wire/issues/338","labels_url":"https://api.github.com/repos/square/wire/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/square/wire/issues/338/comments","events_url":"https://api.github.com/repos/square/wire/issues/338/events","html_url":"https://github.com/square/wire/pull/338","id":102470070,"number":338,"title":"Use 0 for the cached size to workaround Gson magic.","user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T21:56:53Z","updated_at":"2015-08-22T00:10:45Z","closed_at":"2015-08-22T00:10:35Z","pull_request":{"url":"https://api.github.com/repos/square/wire/pulls/338","html_url":"https://github.com/square/wire/pull/338","diff_url":"https://github.com/square/wire/pull/338.diff","patch_url":"https://github.com/square/wire/pull/338.patch"},"body":"Unfortunately we've got some users that rely on Gson's magic no-constructor-call\r\nallocation of message instances, and these come back with 0 already cached when\r\nthat isn't the actual serialized size.\r\n\r\nWork around by just changing the sentinel value. The drawback is that objects\r\nthat are actually 0 won't benefit from caching. This is an acceptable tradeoff;\r\nthose are the fastest to serialize anyway."},"comment":{"url":"https://api.github.com/repos/square/wire/issues/comments/133593818","html_url":"https://github.com/square/wire/pull/338#issuecomment-133593818","issue_url":"https://api.github.com/repos/square/wire/issues/338","id":133593818,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T00:10:45Z","updated_at":"2015-08-22T00:10:45Z","body":":frowning: "}}