{"action":"created","issue":{"url":"https://api.github.com/repos/ray-project/ray/issues/1698","repository_url":"https://api.github.com/repos/ray-project/ray","labels_url":"https://api.github.com/repos/ray-project/ray/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/ray-project/ray/issues/1698/comments","events_url":"https://api.github.com/repos/ray-project/ray/issues/1698/events","html_url":"https://github.com/ray-project/ray/issues/1698","id":304209746,"number":1698,"title":"Speed up actor ID (and other random ID generation).","user":{"login":"robertnishihara","id":249517,"avatar_url":"https://avatars3.githubusercontent.com/u/249517?v=4","gravatar_id":"","url":"https://api.github.com/users/robertnishihara","html_url":"https://github.com/robertnishihara","followers_url":"https://api.github.com/users/robertnishihara/followers","following_url":"https://api.github.com/users/robertnishihara/following{/other_user}","gists_url":"https://api.github.com/users/robertnishihara/gists{/gist_id}","starred_url":"https://api.github.com/users/robertnishihara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertnishihara/subscriptions","organizations_url":"https://api.github.com/users/robertnishihara/orgs","repos_url":"https://api.github.com/users/robertnishihara/repos","events_url":"https://api.github.com/users/robertnishihara/events{/privacy}","received_events_url":"https://api.github.com/users/robertnishihara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-12T00:28:04Z","updated_at":"2018-03-18T22:15:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This function is really slow (on the order of 5-10ms). It is used in a bunch of places and should be replaced with something faster (e.g., a deterministic hash). This is an issue e.g., for actor creation.\r\n\r\nhttps://github.com/ray-project/ray/blob/cae108d019a51bd7bd35df7f93b68ff07a84d9cd/python/ray/utils.py#L84-L107"},"comment":{"url":"https://api.github.com/repos/ray-project/ray/issues/comments/374056503","html_url":"https://github.com/ray-project/ray/issues/1698#issuecomment-374056503","issue_url":"https://api.github.com/repos/ray-project/ray/issues/1698","id":374056503,"user":{"login":"richardliaw","id":4529381,"avatar_url":"https://avatars0.githubusercontent.com/u/4529381?v=4","gravatar_id":"","url":"https://api.github.com/users/richardliaw","html_url":"https://github.com/richardliaw","followers_url":"https://api.github.com/users/richardliaw/followers","following_url":"https://api.github.com/users/richardliaw/following{/other_user}","gists_url":"https://api.github.com/users/richardliaw/gists{/gist_id}","starred_url":"https://api.github.com/users/richardliaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardliaw/subscriptions","organizations_url":"https://api.github.com/users/richardliaw/orgs","repos_url":"https://api.github.com/users/richardliaw/repos","events_url":"https://api.github.com/users/richardliaw/events{/privacy}","received_events_url":"https://api.github.com/users/richardliaw/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T22:15:25Z","updated_at":"2018-03-18T22:15:25Z","author_association":"CONTRIBUTOR","body":"On my machine...\r\n```\r\nIn [12]: %timeit ray.utils.random_string()\r\n4.91 ms ± 133 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\r\n\r\nIn [13]: %timeit uuid.uuid4().bytes\r\n8.89 µs ± 561 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)\r\n\r\nIn [14]: uuid.uuid4().bytes\r\nOut[14]: b'b\\xe9l?\\xe9\\nI\\x8a\\x95\\xc8f\\xe1D\\xb6\\x19\\xef'\r\n```"}}
{"actor":{"display_login":"richardliaw"}}