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

Improve compile time #317

Closed
vitaut opened this issue May 6, 2016 · 1 comment
Closed

Improve compile time #317

vitaut opened this issue May 6, 2016 · 1 comment

Comments

@vitaut
Copy link
Contributor

vitaut commented May 6, 2016

Compile time of code using fmt is much better than Boost Format's but there is still room for improvement.

Current results for a 100-file project (bloat-test):

Benchmarking optimized printf
Compile time: 1.80s
Size: 42152
Stripped size: 30856
Benchmarking optimized IOStreams
Compile time: 13.74s
Size: 94264
Stripped size: 71856
Benchmarking optimized fmt
Compile time: 30.17s
Size: 46272
Stripped size: 34952
@vitaut
Copy link
Contributor Author

vitaut commented May 6, 2016

Moving ostream support to a separate header reduced preprocessed code size by 30% and somewhat improved time:

Benchmarking optimized printf
Compile time: 1.60s
Size: 42152
Stripped size: 30856
Benchmarking optimized IOStreams
Compile time: 13.74s
Size: 94264
Stripped size: 71856
Benchmarking optimized fmt
Compile time: 26.57s
Size: 46272
Stripped size: 34952

@vitaut vitaut closed this as completed May 7, 2016
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

No branches or pull requests

1 participant