RhodiumGroup / rhg_compute_tools

Tools for using compute.rhg.com and compute.impactlab.org
MIT License
1 stars 4 forks source link

speed up metadata pulls #95

Closed bolliger32 closed 3 years ago

bolliger32 commented 3 years ago

The file I modified passes the flake8 test but I did not touch the rest of the files. No new tests needed as this does not change behavior, just speeds things up. Previously, we were calling client.submit(task).result() a whole bunch of times in succession. The change is to just call client.gather() once rather than all of the Future.result() calls.