Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document that users should use
-c opt
for release builds
Added documentation about needing to use `-c opt` for production builds. I did some crude testing of various LTO testing as well and found that it does not appear to improve performance enough for the potential problems it might produce. Results: ``` $ bazel build //cas 93.426 bazel unoptimized 663.727 turbocache unoptimized $ bazel build -c opt //cas 10.077 bazel optimized 48.151 turbocache optimized $ bazel build -c opt --@rules_rust//:extra_rustc_flags=--codegen=lto=thin //cas 9.673 bazel with thinlto 48.654 turbocache optimized with thinlto $ bazel build -c opt --@rules_rust//:extra_rustc_flags=--codegen=lto=fat //cas 9.965 bazel with fatlto 47.874 turbocache optimized with fatlto ``` From these results `fat` is best, but this was only over 1 run, so it is unknown if it really is much faster. The compile time for the binary was significantly slower though. fixes #110
- Loading branch information