We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider adding the following to Cargo.toml to improve performance / reduce binary size:
Cargo.toml
[profile.release] lto = true
The text was updated successfully, but these errors were encountered:
Benchmark on a random subset of files in the bat repo.
bat
./bat-no-lto --color=always src/*.rs README.md Cargo.toml
./bat-lto --color=always src/*.rs README.md Cargo.toml
That's a solid 10% speedup. Nice.
Compile time (release build from scratch, including all dependencies):
Sorry, something went wrong.
126729f
This has been released in bat 0.13.
@sharkdp You may be able to reduce the compile time hit with thin over true/fat, though probably should bench that first 😀
thin
true
fat
https://doc.rust-lang.org/cargo/reference/profiles.html#lto
No branches or pull requests
Consider adding the following to
Cargo.toml
to improve performance / reduce binary size:The text was updated successfully, but these errors were encountered: