Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mprintf overhaul and bugfixes #12563

Closed
wants to merge 7 commits into from
Closed

mprintf overhaul and bugfixes #12563

wants to merge 7 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Dec 20, 2023

In a test case using lots of snprintf() calls using many commonly used %-codes per call, this version is around 30% faster than previous version.

It also fixes the #12561 bug which made it not behave correctly when given unknown %-sequences. Fixing that flaw required a different take on the problem, which resulted in the new two-arrays model.

Fixes #12561

@github-actions github-actions bot added the tests label Dec 20, 2023
@bagder bagder linked an issue Dec 20, 2023 that may be closed by this pull request
bagder added a commit that referenced this pull request Dec 20, 2023
In a test case using lots of snprintf() calls using many commonly used
%-codes per call, this version is around 30% faster than previous
version.

It also fixes the #12561 bug which made it not behave correctly when
given unknown %-sequences. Fixing that flaw required a different take on
the problem, which resulted in the new two-arrays model.

Fixes #12561
Closes #12563
In a test case using lots of snprintf() calls using many commonly used
%-codes per call, this version is around 30% faster than previous
version.

It also fixes the #12561 bug which made it not behave correctly when
given unknown %-sequences. Fixing that flaw required a different take on
the problem, which resulted in the new two-arrays model.

lib557: extended - Verify the #12561 fix and test more printf features

unit1398: fix test: It used a <num>$ only for one argument, which is not
supported.

Fixes #12561
Closes #12563
We don't use that saved struct space anyway
@bagder bagder closed this in ef2cf58 Dec 22, 2023
@bagder bagder deleted the bagder/mprintf branch December 22, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

curl_mprintf discrepancy with regular printf
1 participant