{"action":"closed","issue":{"url":"https://api.github.com/repos/wycm/zhihu-crawler/issues/25","repository_url":"https://api.github.com/repos/wycm/zhihu-crawler","labels_url":"https://api.github.com/repos/wycm/zhihu-crawler/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/wycm/zhihu-crawler/issues/25/comments","events_url":"https://api.github.com/repos/wycm/zhihu-crawler/issues/25/events","html_url":"https://github.com/wycm/zhihu-crawler/issues/25","id":315860035,"node_id":"MDU6SXNzdWUzMTU4NjAwMzU=","number":25,"title":"你好，是不是可以加个饱和策略","user":{"login":"shanyao19940801","id":8862261,"node_id":"MDQ6VXNlcjg4NjIyNjE=","avatar_url":"https://avatars1.githubusercontent.com/u/8862261?v=4","gravatar_id":"","url":"https://api.github.com/users/shanyao19940801","html_url":"https://github.com/shanyao19940801","followers_url":"https://api.github.com/users/shanyao19940801/followers","following_url":"https://api.github.com/users/shanyao19940801/following{/other_user}","gists_url":"https://api.github.com/users/shanyao19940801/gists{/gist_id}","starred_url":"https://api.github.com/users/shanyao19940801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanyao19940801/subscriptions","organizations_url":"https://api.github.com/users/shanyao19940801/orgs","repos_url":"https://api.github.com/users/shanyao19940801/repos","events_url":"https://api.github.com/users/shanyao19940801/events{/privacy}","received_events_url":"https://api.github.com/users/shanyao19940801/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-19T12:42:34Z","updated_at":"2018-07-09T12:34:29Z","closed_at":"2018-07-09T12:34:29Z","author_association":"NONE","body":"你好，看你代码[DetailListPageTask](https://github.com/wycm/zhihu-crawler/blob/2.0/src/main/java/com/crawl/zhihu/task/DetailListPageTask.java)中有一段：\r\n\r\n`if (zhiHuHttpClient.getDetailListPageThreadPool().getQueue().size() > 1000){\r\n                        continue;\r\n                    }`\r\n我觉得当线程并发量上去后，这段代码还是很消耗资源的。\r\n可以给线程池添加一个Descar饱和策略，最大线程以及阻塞队列都满了后继续添加任务直接抛弃掉。和你的这段代码效果一样，但是有线程池来抛弃效率肯定会更好。"}}
{"actor":{"display_login":"wycm"}}