Route logging is extremely slow #191
Labels
c api
This has to do with the C API (_view)
complex
This should only be looked at by someone who knows what they're doing
hot
This is high priority
improvement
Improvement to an existing feature
Milestone
Description:
view.py's route logging system through
route_log
in the C API is extremely slow. Basically, with the new PyAwaitable vendor on thereactpy
branch, view.py is slower than pretty much all other web frameworks with route logging enabled.With route logging disabled, it becomes several times faster, and outperforms every Python ASGI framework (that I've tried, at least). I tested FastAPI, BlackSheep, and Emmett, and view.py beat all of them with it's route logger disabled.
So, what's the fix? Well, we could just leave route logging out, but that's going to remove some debugging ability for the user, so there's three main options here:
The text was updated successfully, but these errors were encountered: