diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8e0ab9790c3c28db13a181880c144181ed5e3e2..46454f181a5b0599fbeb9b649d7d36869042ec5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,10 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
     set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
 endif()
 
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
+   add_compile_options("-march=native;-flto")
+endif()
+
 ########
 ### SANITIZER 
 ########