{"action":"created","issue":{"url":"https://api.github.com/repos/real-logic/Agrona/issues/63","repository_url":"https://api.github.com/repos/real-logic/Agrona","labels_url":"https://api.github.com/repos/real-logic/Agrona/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/real-logic/Agrona/issues/63/comments","events_url":"https://api.github.com/repos/real-logic/Agrona/issues/63/events","html_url":"https://github.com/real-logic/Agrona/issues/63","id":152729009,"number":63,"title":"Discussion: Map/Set load factor","user":{"login":"guidomedina","id":1789197,"avatar_url":"https://avatars.githubusercontent.com/u/1789197?v=3","gravatar_id":"","url":"https://api.github.com/users/guidomedina","html_url":"https://github.com/guidomedina","followers_url":"https://api.github.com/users/guidomedina/followers","following_url":"https://api.github.com/users/guidomedina/following{/other_user}","gists_url":"https://api.github.com/users/guidomedina/gists{/gist_id}","starred_url":"https://api.github.com/users/guidomedina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidomedina/subscriptions","organizations_url":"https://api.github.com/users/guidomedina/orgs","repos_url":"https://api.github.com/users/guidomedina/repos","events_url":"https://api.github.com/users/guidomedina/events{/privacy}","received_events_url":"https://api.github.com/users/guidomedina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/real-logic/Agrona/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-03T09:03:34Z","updated_at":"2016-05-03T09:21:19Z","closed_at":null,"body":"I was wondering about the following two aspects concerning load factor:\r\n\r\n- Why is it a double? is it such precision needed? I'm looking at it more from the space perspective, these extra 4 bytes I don't think are needed, even for comparison sake (I'm not sure this one is important TBH; comparing floats vs doubles), specially if you are serializing that `Set` or `Map`, these 4 extra bytes are more of a burden than helpful.\r\n- 1.0 load factor, it sounds stupid to have 1.0 as load factor but sometimes a `Set` can be use only as a wire-transport where hash collision -and its performance implication- is not important but memory occupation of that particular `Set` or `Map`, another reason is that when load factor is not important but space the user to go around your 1.0 restriction will set it to 0.99 so in the end I don't think it will have the effect you intended it to have."},"comment":{"url":"https://api.github.com/repos/real-logic/Agrona/issues/comments/216476495","html_url":"https://github.com/real-logic/Agrona/issues/63#issuecomment-216476495","issue_url":"https://api.github.com/repos/real-logic/Agrona/issues/63","id":216476495,"user":{"login":"mjpt777","id":760524,"avatar_url":"https://avatars.githubusercontent.com/u/760524?v=3","gravatar_id":"","url":"https://api.github.com/users/mjpt777","html_url":"https://github.com/mjpt777","followers_url":"https://api.github.com/users/mjpt777/followers","following_url":"https://api.github.com/users/mjpt777/following{/other_user}","gists_url":"https://api.github.com/users/mjpt777/gists{/gist_id}","starred_url":"https://api.github.com/users/mjpt777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjpt777/subscriptions","organizations_url":"https://api.github.com/users/mjpt777/orgs","repos_url":"https://api.github.com/users/mjpt777/repos","events_url":"https://api.github.com/users/mjpt777/events{/privacy}","received_events_url":"https://api.github.com/users/mjpt777/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T09:21:19Z","updated_at":"2016-05-03T09:21:19Z","body":"Yes :)"}}