{"action":"created","issue":{"url":"https://api.github.com/repos/depcheck/depcheck/issues/43","labels_url":"https://api.github.com/repos/depcheck/depcheck/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/depcheck/depcheck/issues/43/comments","events_url":"https://api.github.com/repos/depcheck/depcheck/issues/43/events","html_url":"https://github.com/depcheck/depcheck/issues/43","id":116249627,"number":43,"title":"Performance enhancement","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/depcheck/depcheck/labels/feature","name":"feature","color":"ededed"},{"url":"https://api.github.com/repos/depcheck/depcheck/labels/help%20wanted","name":"help wanted","color":"ededed"},{"url":"https://api.github.com/repos/depcheck/depcheck/labels/refinement","name":"refinement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T02:30:12Z","updated_at":"2015-11-11T02:30:14Z","closed_at":null,"body":"_From @lijunle on September 26, 2015 14:28_\n\nCurrently, depCheck looks for all files under directory to get dependency result.\r\n\r\nSome strategies can be used to optimize the performance:\r\n\r\n1. First, it get packages from a part of files, compare with declaring packages.\r\n2. If all declaring packages are used, stop reading files. Return everything is good. :white_check_mark: \r\n3. If not all declaring packages are used, continue the step 1.\r\n4. If all files are searched, but there are some declaring packaged not fulfilled, show them as unused. :x: \r\n\r\n---\r\n\r\nConcretely, it need to convert the `promise` queue in `checkDirectory` to `Array<Func<Promise>>` queue. The promises are triggered only then function is invoked.\n\n_Copied from original issue: lijunle/depcheck-es6#49_"},"comment":{"url":"https://api.github.com/repos/depcheck/depcheck/issues/comments/155638354","html_url":"https://github.com/depcheck/depcheck/issues/43#issuecomment-155638354","issue_url":"https://api.github.com/repos/depcheck/depcheck/issues/43","id":155638354,"user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T02:30:14Z","updated_at":"2015-11-11T02:30:14Z","body":"Use [benchmarkjs](http://benchmarkjs.com) to compare the performances of different strategies."}}