cmdrmcdonald / EliteDangerousDataProvider

Apache License 2.0
134 stars 31 forks source link

Feature/165 api performance #299

Closed Hoodathunk closed 6 years ago

Hoodathunk commented 6 years ago

API data retrieval performance improved by splitting data queris into two functional parts.

refreshProfile() handles commander, ships, and system/station data via API /profile query.

conditionallyRefreshProfile() handles station services data via API /market and /shipyard queries.. Method is called specifically for 'Location' & 'Docked' events. A dedicated thread is 'spun off', which mitigates the 5 sec delay required for collecting shipyard (ships available for purchase) data.

Hoodathunk commented 6 years ago

Opened in error