Skip to content

Conversation

@kariya-mitsuru
Copy link
Contributor

recudeprint.c
By changing the output count per iteration from 15 to 30, reduce the number of myitoa calls from 8/15 to 3/30.
(The last digit is always the same for every iteration, so there is no need to output it by myitoa.)

reduceandreuse.c
Combine reduceprint.c & reusebuffer2.c

My machine's results.

reusebuffer2    5.119s
reduceprint     4.740s
reduceandreuse  4.167s

recudeprint.c
By changing the output count per iteration from 15 to 30, reduce the number of myitoa calls from 8/15 to 3/30.
(The last digit is always the same for every iteration, so there is no need to output it by myitoa.)

reduceandreuse.c
Combine reduceprint.c & reusebuffer2.c

My machine's results.

reusebuffer2    5.119s
reduceprint     4.740s
reduceandreuse  4.167s
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.

1 participant