Would be neat if you could toggle the parallel execution on and off, to better demonstrate the performance difference that it implements.
Would happen in this code that calls gather():
|
awaitables = [ |
|
instance._registry[name]( |
|
instance, |
|
_results=results, |
|
**{k: v for k, v in results.items() if k in instance._graph[name]}, |
|
) |
|
for name in awaitable_names |
|
] |
|
awaitable_results = await asyncio.gather(*awaitables) |
|
results.update(dict(zip(awaitable_names, awaitable_results))) |
Would be neat if you could toggle the parallel execution on and off, to better demonstrate the performance difference that it implements.
Would happen in this code that calls
gather():asyncinject/asyncinject/__init__.py
Lines 114 to 123 in 4734897