{"action":"created","issue":{"url":"https://api.github.com/repos/segmentio/analytics-android/issues/311","labels_url":"https://api.github.com/repos/segmentio/analytics-android/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/issues/311/comments","events_url":"https://api.github.com/repos/segmentio/analytics-android/issues/311/events","html_url":"https://github.com/segmentio/analytics-android/pull/311","id":92167743,"number":311,"title":"Adds ability to set an initial capacity for Properties","user":{"login":"imminent","id":833939,"avatar_url":"https://avatars.githubusercontent.com/u/833939?v=3","gravatar_id":"","url":"https://api.github.com/users/imminent","html_url":"https://github.com/imminent","followers_url":"https://api.github.com/users/imminent/followers","following_url":"https://api.github.com/users/imminent/following{/other_user}","gists_url":"https://api.github.com/users/imminent/gists{/gist_id}","starred_url":"https://api.github.com/users/imminent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imminent/subscriptions","organizations_url":"https://api.github.com/users/imminent/orgs","repos_url":"https://api.github.com/users/imminent/repos","events_url":"https://api.github.com/users/imminent/events{/privacy}","received_events_url":"https://api.github.com/users/imminent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T18:36:20Z","updated_at":"2015-06-30T21:19:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/segmentio/analytics-android/pulls/311","html_url":"https://github.com/segmentio/analytics-android/pull/311","diff_url":"https://github.com/segmentio/analytics-android/pull/311.diff","patch_url":"https://github.com/segmentio/analytics-android/pull/311.patch"},"body":"Setting initial capacity sets the initial capacity of the delegated Map. This saves on unnecessary allocation when the map has a consistent size, which is common for tracking `Properties`."},"comment":{"url":"https://api.github.com/repos/segmentio/analytics-android/issues/comments/117346272","html_url":"https://github.com/segmentio/analytics-android/pull/311#issuecomment-117346272","issue_url":"https://api.github.com/repos/segmentio/analytics-android/issues/311","id":117346272,"user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T21:19:23Z","updated_at":"2015-06-30T21:19:23Z","body":"I think a better solution would update our API to accept a regular `Map<String, ?>` as properties, which users can optionally size in advance since they would be able to pass in their own map implementation.\r\n\r\nIf not, at the very least we should update the other value types (traits) to expose the int overload."}}