{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1248","repository_url":"https://api.github.com/repos/obspy/obspy","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1248/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1248/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1248/events","html_url":"https://github.com/obspy/obspy/pull/1248","id":133666364,"number":1248,"title":"TauP depth caching","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.taup","name":".taup","color":"0b02e1"},{"url":"https://api.github.com/repos/obspy/obspy/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/8","html_url":"https://github.com/obspy/obspy/milestones/1.0.0","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/8/labels","id":725009,"number":8,"title":"1.0.0","description":"","creator":{"login":"barsch","id":602450,"avatar_url":"https://avatars.githubusercontent.com/u/602450?v=3","gravatar_id":"","url":"https://api.github.com/users/barsch","html_url":"https://github.com/barsch","followers_url":"https://api.github.com/users/barsch/followers","following_url":"https://api.github.com/users/barsch/following{/other_user}","gists_url":"https://api.github.com/users/barsch/gists{/gist_id}","starred_url":"https://api.github.com/users/barsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsch/subscriptions","organizations_url":"https://api.github.com/users/barsch/orgs","repos_url":"https://api.github.com/users/barsch/repos","events_url":"https://api.github.com/users/barsch/events{/privacy}","received_events_url":"https://api.github.com/users/barsch/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":89,"state":"open","created_at":"2014-07-18T08:42:03Z","updated_at":"2016-02-15T18:38:53Z","due_on":"2016-02-18T23:00:00Z","closed_at":null},"comments":3,"created_at":"2016-02-15T09:39:58Z","updated_at":"2016-02-15T19:06:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/1248","html_url":"https://github.com/obspy/obspy/pull/1248","diff_url":"https://github.com/obspy/obspy/pull/1248.diff","patch_url":"https://github.com/obspy/obspy/pull/1248.patch"},"body":"It's the PR you've been waiting for... and I mean that literally, since the CIs seem to have been taking forever lately.\r\n\r\nThis implements the depth cache using [cachetools](https://pythonhosted.org/cachetools/), if available. Otherwise, no cache is used. Using cachetools allows some flexibility in the caching algorithm that the user can tweak for specific use cases. There is also a `functools.lru_cache` in the standard library, but it's 3-only. I have a solution that would fall back to that partially implemented too that could be added here if I figure out one last bug with it.\r\n\r\nLocally, the taup tests with caching are about 50% of the original runtime, so fingers crossed that we get some reasonable speedup on the CIs."},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/184349379","html_url":"https://github.com/obspy/obspy/pull/1248#issuecomment-184349379","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1248","id":184349379,"user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T19:06:32Z","updated_at":"2016-02-15T19:06:32Z","body":"Huh, still pretty slow, but at least our users will benefit somewhat..."}}