{"comment":{"url":"https://api.github.com/repos/plone/plone.app.event/comments/9769550","html_url":"https://github.com/plone/plone.app.event/commit/a17c9e1178303639893a95141b468a73a654b5f5#commitcomment-9769550","id":9769550,"user":{"login":"davisagli","id":49014,"avatar_url":"https://avatars.githubusercontent.com/u/49014?v=3","gravatar_id":"","url":"https://api.github.com/users/davisagli","html_url":"https://github.com/davisagli","followers_url":"https://api.github.com/users/davisagli/followers","following_url":"https://api.github.com/users/davisagli/following{/other_user}","gists_url":"https://api.github.com/users/davisagli/gists{/gist_id}","starred_url":"https://api.github.com/users/davisagli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisagli/subscriptions","organizations_url":"https://api.github.com/users/davisagli/orgs","repos_url":"https://api.github.com/users/davisagli/repos","events_url":"https://api.github.com/users/davisagli/events{/privacy}","received_events_url":"https://api.github.com/users/davisagli/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"a17c9e1178303639893a95141b468a73a654b5f5","created_at":"2015-02-16T22:11:09Z","updated_at":"2015-02-16T22:11:09Z","body":"```\r\n$ python -m timeit try: \"    import foo\" \"except ImportError:\" \"    pass\"\r\n10000 loops, best of 3: 164 usec per loop\r\n$ python -m timeit -s \"import pkg_resources\" try: \"    pkg_resources.get_distribution('foo')\" \"except pkg_resources.DistributionNotFound:\" \"    pass\"\r\n100 loops, best of 3: 4.89 msec per loop\r\n```\r\n\r\nThat looks like using pkg_resources is 35 times slower when the package is not found."}}