semiotic-ai / autoagora-agents

Apache License 2.0
1 stars 2 forks source link

Slow performance of multi_agent_simulation due to high asyncio run calls #13

Closed tumaysem closed 1 year ago

tumaysem commented 1 year ago

Setup Python 3.10 (64bit) on windows 11

While running the simulation after 2620 iteration, simulation code is halted. After investigating with a profiler, main issue seems to be multiple usage of asyncio run calls.

image

After wrapping the whole execution with a single asyncio run, issue is resolved. image

aasseman commented 1 year ago

Could you open a PR specific to this issue with your solution?

tumaysem commented 1 year ago

Some execution times from mac pro m1 before changes 33.1 sec and after changes 22 sec.