PYTHON-6115Backlog

BSON C Extension Performance Improvements

h3. Context While investigating PYTHON-6109 (abi3 support), several standalone performance wins in the existing BSON C extension were identified. They are independent of that effort and benefit the current driver: using benchmarks I measured ~15% on the standard bson tests from removing temporary bytes allocations for string keys/values, 52% encode / 19% decode for datetime using O(1) calendar math, ~20% faster tz-aware datetime encode, and faster encode dispatch and a decode fast-path fix.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
BSONPerformance
Labels
Tags and classification
pqpy