Open mdavidsaver opened 3 months ago
I haven't seen this before, but I do recall performance issues when doing large numbers of call_soon_threadsafe()
. My strategy was to copy the wakeup code from cothread and adapt for asyncio.
call_soon_threadsafe
which only actually wakes up asyncio if it isn't already processing callbacks: https://github.com/dls-controls/aioca/blob/216bcc3e91d7215cd7ccbfa6bbe942abe196fd5b/aioca/_catools.py#L308-L312
With py3.11 using P4P with asyncio. Connecting to a large number of channels too longer than I expected. Turning on asyncio debugging shows many repetitions of:
@coretl Does this look familiar? I recall your mentioning seeing a scalability issue with asyncio
call_soon_threadsafe()
.