{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/794","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/794/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/794/events","html_url":"https://github.com/rust-lang/rfcs/issues/794","id":56222071,"number":794,"title":"maybe expose a way to pass pre-calculated hashes along with hash table keys","user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/A-enhancement","name":"A-enhancement","color":"d7e101"},{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/A-libs","name":"A-libs","color":"d7e101"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-02T10:57:48Z","updated_at":"2015-12-06T20:02:08Z","closed_at":null,"body":"<a href=\"https://github.com/thestinger\"><img src=\"https://avatars.githubusercontent.com/u/1505226?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [thestinger](https://github.com/thestinger)**\n_Tuesday Nov 26, 2013 at 03:05 GMT_\n\n_For earlier discussion, see https://github.com/rust-lang/rust/issues/10661_\n\n_This issue was labelled with: A-libs, I-enhancement, I-slow in the Rust repository_\n\n----\n\nI found this was necessarily to avoid double-hashing with a shard-based concurrent hash table like Java's `ConcurrentHashMap` as the hash needs to be calculated to pick the correct shard.\r\n\r\nhttps://github.com/thestinger/rust-core/blob/master/core/concurrent.rs#L299\r\n\r\nThis could be done by hoisting out the open-addressing implementation, but it will result in it *requiring* the hashes to be stored in the table rather than it just being an implementation detail.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/162342385","html_url":"https://github.com/rust-lang/rfcs/issues/794#issuecomment-162342385","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/794","id":162342385,"user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T20:02:08Z","updated_at":"2015-12-06T20:02:08Z","body":"This should be possible with the landing of `const fn`."}}