From 23f1a77d4c8047d83b016be15de29b03b8a87d5a Mon Sep 17 00:00:00 2001 From: Roy Jacobson Date: Mon, 12 Jun 2023 11:56:07 +0200 Subject: [PATCH] Doc: Warn people about benchmarking/deploying without LTO (#1396) --- docs/build-from-source.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/build-from-source.md b/docs/build-from-source.md index 3e96ac74c..eec80db71 100644 --- a/docs/build-from-source.md +++ b/docs/build-from-source.md @@ -5,6 +5,10 @@ Dragonfly runs on linux. We advice running it on linux version 5.11 or later but you can also run Dragonfly on older kernels as well. +> :warning: **Dragonfly releases are compiled with LTO (link time optimization)**: + Depending on the workload this can notably improve performance. If you want to + benchmark Dragonfly or use it in production, you should enable LTO by giving + `blaze.sh` the `-DCMAKE_CXX_FLAGS="-flto"` argument. ## Step 1 - install dependencies