quaint-telephone-89068
02/25/2023, 1:07 AM@rule like:
results = []
for x in some_collection:
result = await Get(Y, X, x)
results.append(result)
...generally represents a missed opportunity for parallelism (because all of the dependency requests could be proceeding in parallel), and should be converted to:
results = await MultiGet(Get(Y, X, x) for x in some_collection)
We should examine existing usecases, and if there are no strongly motivating examples for await-in-for, consider making it an error.
pantsbuild/pantsuser
02/25/2023, 1:07 AM