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

[RFC] Optimize message generation in object.c. #45

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

ericonr
Copy link
Contributor

@ericonr ericonr commented Jul 26, 2021

Avoid using printf-like functions when not necessary; this avoids
scanning the string before writing it.

Can be done for more files as well. To minimize the diff and logic
differences, using only fputs instead of a combination of fputc and
fputs might make sense.

Avoid using printf-like functions when not necessary; this avoids
scanning the string before writing it.

Can be done for more files as well. To minimize the diff and logic
differences, using only fputs instead of a combination of fputc and
fputs might make sense.
@haraldh
Copy link
Contributor

haraldh commented Aug 9, 2021

Seems like a good compiler already does this ... http://www.ciselant.de/projects/gcc_printf/gcc_printf.html

@haraldh
Copy link
Contributor

haraldh commented Aug 9, 2021

but yeah...

2.1 No optimization if return code is used

@haraldh haraldh merged commit 5bb62f6 into varlink:master Dec 21, 2021
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.

2 participants