particle-iot / spark-sdk-ios

DEPRECATED Particle iOS Cloud SDK. Use -->
https://github.com/particle-iot/particle-sdk-ios
Apache License 2.0
52 stars 33 forks source link

Too Slow #1

Closed kikolobo closed 9 years ago

kikolobo commented 9 years ago

For some reason, listing devices and/or getting a device thru the API seems too slow compared to a same request thru standard REST client. 2 seconds vs 10 or more. I will investigate further, but it seems like a ADNetworking issue.

kikolobo commented 9 years ago

Found the culprit... It was because when listing devices "getDevices" each device will get an additional call to the cloud to get it's details (vars, functions, etc). So this imposes a big overhead when you have more than 2 or 3 devices.