Skip to content

bpo-40313: speed up bytes.hex()#19594

Merged
miss-islington merged 2 commits into
python:masterfrom
sweeneyde:hexperf
Apr 21, 2020
Merged

bpo-40313: speed up bytes.hex()#19594
miss-islington merged 2 commits into
python:masterfrom
sweeneyde:hexperf

Conversation

@sweeneyde

@sweeneyde sweeneyde commented Apr 19, 2020

Copy link
Copy Markdown
Member

@gpshead

gpshead commented Apr 20, 2020

Copy link
Copy Markdown
Member

The code looks great, a natural unrolling to avoid all the conditionals within. Would you please add a NEWS entry about the performance improvement using blurb or blurb-it?

@miss-islington

Copy link
Copy Markdown
Contributor

@sweeneyde: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 6a9e80a into python:master Apr 21, 2020
@vstinner

Copy link
Copy Markdown
Member

I hesitated to do something very similar when I wrote my PR #19535 :-) Nice optimization.

@sweeneyde sweeneyde deleted the hexperf branch April 28, 2020 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants