Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1296 +/- ##
==========================================
- Coverage 86.24% 84.51% -1.74%
==========================================
Files 17 17
Lines 2436 2512 +76
Branches 258 262 +4
==========================================
+ Hits 2101 2123 +22
- Misses 249 317 +68
+ Partials 86 72 -14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
read_length_coded_string()reads each column value and each field name. When the value is shorter than 251 bytes, it now reads the value with one slice. NULL and longer values do not callread_length_encoded_integer()now. The output and the exceptions do not change.I measured no slowdown on CPython 3.9 and 3.15 for NULL, 251-byte, or 64 KB values. I used 20 interleaved rounds and a Mann-Whitney test (Apple M5). On PyPy 3.11, rows do not change, but a loop of only NULL reads is 5% slower. I did not measure other architectures.
Checks:
ruff format --checkandruff checkpass.pymysql/tests/test_protocol.pycovers each length prefix, NULL, and truncated values.Summary by CodeRabbit