cedws / finch

A proof-of-concept for enhancing and organising an image collection using Google's Vision API
GNU General Public License v3.0
0 stars 1 forks source link

Finch should make requests asynchronously, not in parallel. #6

Open cedws opened 6 years ago

cedws commented 6 years ago

The parallel implementation is fairly inefficient. The goal is to open as many API requests as possible at once as each response can take several seconds. However, this is bottlenecked by the upload speed anyway. A better way to do this would be to asynchronously make API requests.

cedws commented 6 years ago

Had a go at implementing this, but async is still in its early stages in Rust. I will be taking another look at this when async/await support rolls out.