{"action":"closed","issue":{"url":"https://api.github.com/repos/trotzig/import-js/issues/22","labels_url":"https://api.github.com/repos/trotzig/import-js/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/trotzig/import-js/issues/22/comments","events_url":"https://api.github.com/repos/trotzig/import-js/issues/22/events","html_url":"https://github.com/trotzig/import-js/issues/22","id":71115921,"number":22,"title":"Improve performance","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-26T20:28:35Z","updated_at":"2015-07-16T14:57:51Z","closed_at":"2015-07-16T14:57:51Z","body":"Sometimes when I run import-js, it takes a while for it to figure out what to import. I would like to set it up to run whenever I save a .js file so I can stop managing my require statements entirely, but before I do that it would be great if we could make this run faster.\r\n\r\nOne thing that might help would be to use some caching in the `find_files` method. It might work well to swap out the `Dir` calls for command line tools if they are available. Taking it a step further, it might be interesting to be able to optionally tap into other plugins' file listings, such as Command-T's file listing."}}