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.