Skip to content

bpo-28307: Convert simple C-style formatting with literal format into f-string. - #5012

Merged
serhiy-storchaka merged 12 commits into
python:mainfrom
serhiy-storchaka:optimize-c-style-format
May 8, 2021
Merged

serhiy-storchaka merged 12 commits into
python:mainfrom
serhiy-storchaka:optimize-c-style-format

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Dec 26, 2017 •

Copy link
Copy Markdown
Member
@serhiy-storchaka serhiy-storchaka added the performance Performance or resource usage label Dec 26, 2017
@serhiy-storchaka
serhiy-storchaka requested a review from a team December 26, 2017 00:04
@brettcannon
brettcannon removed the request for review from a team March 23, 2018 21:10
@taleinat

taleinat commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

@serhiy-storchaka, this is very nice!

Any benchmarks for this?

What would it take to move this forward for 3.8?

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Results of microbenchmarks are provided on the tracker.

I want to add support of more complex format codes (at least %d) if this proposition be accepted in general.

@serhiy-storchaka serhiy-storchaka changed the title [POC] bpo-28307: Convert simple C-style formatting with literal format into f-string. Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

5 participants