Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Improving Performance and Reducing Requests #5

Open
nickcharlton opened this issue Apr 11, 2015 · 0 comments
Open

Improving Performance and Reducing Requests #5

nickcharlton opened this issue Apr 11, 2015 · 0 comments
Labels

Comments

@nickcharlton
Copy link
Member

Now we've got a good chunk of stuff working, I'm trying to plot out what we'll need to get it all working in production. The most common example is the ISS, so I'll use that. So, for example:

import spacebodies

sb = spacebodies.SpaceBodies()
events = sb.next_events("iss", lat=50.7184, lon=-3.5339)

On my system, it takes 22.6 seconds for the next_events call. Considering most of that is network access:

  1. How many calls are we making to Forecast.io? It looks like 3.
  2. What can we cache locally that'll help?
  3. Which bits of data are only updated daily or less?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant