You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that, for some reason, you replaced uvloop, which is used by uvicorn by default, with the default asyncio event loop. This is negatively impacts performance:
I'd be extremely surprised if there's an objectively measurable change in performance in a single user case, as most modern machines are perfectly capable of relaying short strings of text at 100Mbit+ rates.
It seems that, for some reason, you replaced
uvloop
, which is used byuvicorn
by default, with the defaultasyncio
event loop. This is negatively impacts performance:chainlit/backend/chainlit/cli/__init__.py
Lines 91 to 92 in 85c98ea
chainlit/backend/chainlit/cli/__init__.py
Lines 104 to 108 in 85c98ea
or at least, it feels like performance improved when I replaced this code with the following:
Is this true? If so, is there any reason to keep it that way? Is there a workaround or solution to configure it to use
uvloop
instead?The text was updated successfully, but these errors were encountered: