diff options
author | Maria Markova <maria.markova@intel.com> | 2022-10-02 14:15:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 15:15:14 +0300 |
commit | 3469c6509c4078f6b2738359ebaacf5df707a6a1 (patch) | |
tree | 3177d984b8b5c7bdd809b294541eba555fdfe444 /src/Makefile | |
parent | 3c02d1acc499bf5391d904924219450f0ff2d45a (diff) | |
download | redis-3469c6509c4078f6b2738359ebaacf5df707a6a1.tar.gz |
Change compiler optimizations to -O3 -flto (#11207)
Optimization update from -O2 to -O3 -flto gives up to 5% performance gain
in 'redis-benchmarks-spec-client-runner' tests geomean where GCC 9.4.0 is used for build
* Fix for false-positive warning in bitops.c
Warning appeared with O3, on CentOS during inlininig procedure
* Fixed unitialized streamID within streamTrim() (#1)
Co-authored-by: filipe oliveira <filipecosta.90@gmail.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index fdfef2b3c..6a56c1dff 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh') uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') -OPTIMIZATION?=-O2 +OPTIMIZATION?=-O3 -flto DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram NODEPS:=clean distclean |