{"action":"created","issue":{"url":"https://api.github.com/repos/Nimoto/javatanks/issues/3","repository_url":"https://api.github.com/repos/Nimoto/javatanks","labels_url":"https://api.github.com/repos/Nimoto/javatanks/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Nimoto/javatanks/issues/3/comments","events_url":"https://api.github.com/repos/Nimoto/javatanks/issues/3/events","html_url":"https://github.com/Nimoto/javatanks/issues/3","id":338699893,"node_id":"MDU6SXNzdWUzMzg2OTk4OTM=","number":3,"title":"Неэффективное определение наличия юзера","user":{"login":"konyahin","id":6325570,"node_id":"MDQ6VXNlcjYzMjU1NzA=","avatar_url":"https://avatars2.githubusercontent.com/u/6325570?v=4","gravatar_id":"","url":"https://api.github.com/users/konyahin","html_url":"https://github.com/konyahin","followers_url":"https://api.github.com/users/konyahin/followers","following_url":"https://api.github.com/users/konyahin/following{/other_user}","gists_url":"https://api.github.com/users/konyahin/gists{/gist_id}","starred_url":"https://api.github.com/users/konyahin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konyahin/subscriptions","organizations_url":"https://api.github.com/users/konyahin/orgs","repos_url":"https://api.github.com/users/konyahin/repos","events_url":"https://api.github.com/users/konyahin/events{/privacy}","received_events_url":"https://api.github.com/users/konyahin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T19:35:25Z","updated_at":"2018-07-11T12:05:09Z","closed_at":"2018-07-11T12:05:09Z","author_association":"NONE","body":"https://github.com/Nimoto/javatanks/blob/9ea2928a044eb22597d9eba631561cf6cc403378/src/main/java/ru/nimoto/tanks/controllers/UserController.java#L15\r\nТут для поиска юзера по имени приходится каждый раз обходить всех имеющихся пользователей. Это не оптимально. В качестве решения предлагаю использовать HashSet для username и проверять наличие через contains."},"comment":{"url":"https://api.github.com/repos/Nimoto/javatanks/issues/comments/404145346","html_url":"https://github.com/Nimoto/javatanks/issues/3#issuecomment-404145346","issue_url":"https://api.github.com/repos/Nimoto/javatanks/issues/3","id":404145346,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDE0NTM0Ng==","user":{"login":"Nimoto","id":6960261,"node_id":"MDQ6VXNlcjY5NjAyNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/6960261?v=4","gravatar_id":"","url":"https://api.github.com/users/Nimoto","html_url":"https://github.com/Nimoto","followers_url":"https://api.github.com/users/Nimoto/followers","following_url":"https://api.github.com/users/Nimoto/following{/other_user}","gists_url":"https://api.github.com/users/Nimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/Nimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nimoto/subscriptions","organizations_url":"https://api.github.com/users/Nimoto/orgs","repos_url":"https://api.github.com/users/Nimoto/repos","events_url":"https://api.github.com/users/Nimoto/events{/privacy}","received_events_url":"https://api.github.com/users/Nimoto/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T12:05:09Z","updated_at":"2018-07-11T12:05:09Z","author_association":"OWNER","body":"неактуально"}}
{"actor":{"display_login":"Nimoto"}}