Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache downloaded templates #53

Open
cbaakman opened this issue Nov 23, 2016 · 3 comments
Open

Cache downloaded templates #53

cbaakman opened this issue Nov 23, 2016 · 3 comments

Comments

@cbaakman
Copy link
Contributor

cbaakman commented Nov 23, 2016

Hommod needs to access template files (pdb structures) multiple times each modeling run. This can be with intervals of seconds.

Currently, hommod re-downloads the pdb structure with each new step that uses it. But I think it would be faster to have a pdb service in hommod that handles the request for a template file and downloads it only once per modeling run.

@jonblack
Copy link
Contributor

jonblack commented Dec 8, 2016

A couple of questions:

  1. Is the problem that this costs a lot of time? How much time are we talking about?
  2. Where is the downloading done? Is this the calls to yasara.loadpdb?

@cbaakman
Copy link
Contributor Author

  1. The downloading takes several seconds, it can be called more than 20 times per run
  2. The downloading is donw in yasara.LoadPDB, with the download option set to 'yes'

@jonblack
Copy link
Contributor

We can wrap the yasara function in a cached function using dogpile.

@jonblack jonblack changed the title downloading template files Cache downloaded templates Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants