Skip to content

Conversation

@robsdedude
Copy link
Member

@robsdedude robsdedude commented Jul 24, 2025

By special-casing bytearray, we can avoid an allocation and complete extra copy of the data when packing it. This speeds up packing of bytearrays by roughly 1/3.

@robsdedude robsdedude force-pushed the feat/optimize-bytearray-packing branch from 19002d0 to 8b161fb Compare July 24, 2025 13:02
By special-casing `bytearray`, we can avoid an allocation and complete extra
copy of the data when packing it. This speeds up packing by roughly 1/3.
@robsdedude robsdedude force-pushed the feat/optimize-bytearray-packing branch from 8b161fb to b9def8a Compare July 24, 2025 13:03
@robsdedude robsdedude marked this pull request as ready for review July 24, 2025 14:09
Copy link

@StephenCathcart StephenCathcart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@robsdedude robsdedude enabled auto-merge (squash) July 29, 2025 12:20
@robsdedude robsdedude merged commit d1fccaf into 6.x Jul 29, 2025
8 checks passed
@robsdedude robsdedude deleted the feat/optimize-bytearray-packing branch July 29, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants