There are two bottlenecks.
- Reading packet
- Parsing packet
1 is resolved by using io module.
To resolve issue 2, we should remove classes for parsing packets, and use simple flat function and
builtin types. It make PyMySQL on PyPy faster.
Then, we can easily replace them with speedup module written in C.
There are two bottlenecks.
1 is resolved by using io module.
To resolve issue 2, we should remove classes for parsing packets, and use simple flat function and
builtin types. It make PyMySQL on PyPy faster.
Then, we can easily replace them with speedup module written in C.