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

Improving Performance and Reducing Requests #5

@nickcharlton

Description

@nickcharlton

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions