mirror of
https://github.com/GermanAizek/mongodb-without-avx
synced 2024-08-30 17:32:17 +00:00
Speedup compile time in all generic patches, remove debugging checks and added variants optimization flags
- O2 default optimization (big size binary) - O3 maximum optimization (very big size binary) - Os size binary optimization
This commit is contained in:
parent
05ccb5aad0
commit
f74bf316c7
@ -1,11 +0,0 @@
|
||||
--- SConstruct 2023-02-11 22:51:01.000000000 +0000
|
||||
+++ SConstruct 2023-02-16 00:00:00.000000000 +0000
|
||||
@@ -375,7 +375,7 @@
|
||||
action="append",
|
||||
choices=experimental_optimization_choices,
|
||||
const=experimental_optimization_choices[0],
|
||||
- default=['+sandybridge'],
|
||||
+ default=[],
|
||||
help='Enable experimental optimizations',
|
||||
nargs='?',
|
||||
type='choice'
|
43
o2_patch.diff
Normal file
43
o2_patch.diff
Normal file
@ -0,0 +1,43 @@
|
||||
From ebc708a1e635a67e0da7f686ea97bffd040b770a Mon Sep 17 00:00:00 2001
|
||||
From: German Semenov <GermanAizek@yandex.ru>
|
||||
Date: Fri, 2 Jun 2023 02:03:21 +0300
|
||||
Subject: [PATCH] Optimize compile time and remove avx instructions
|
||||
|
||||
---
|
||||
SConstruct | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index b65e089f8ee..74811ccc25c 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -312,7 +312,7 @@ add_option(
|
||||
'dbg',
|
||||
choices=['on', 'off'],
|
||||
const='on',
|
||||
- default=build_profile.dbg,
|
||||
+ default='off',
|
||||
help='Enable runtime debugging checks',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -349,7 +349,7 @@ add_option(
|
||||
'opt',
|
||||
choices=['on', 'debug', 'size', 'off', 'auto'],
|
||||
const='on',
|
||||
- default=build_profile.opt,
|
||||
+ default='on',
|
||||
help='Enable compile-time optimization',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -375,7 +375,7 @@ add_option(
|
||||
action="append",
|
||||
choices=experimental_optimization_choices,
|
||||
const=experimental_optimization_choices[0],
|
||||
- default=['+sandybridge'],
|
||||
+ default=[],
|
||||
help='Enable experimental optimizations',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
--
|
||||
2.34.1
|
||||
|
43
o3_patch.diff
Normal file
43
o3_patch.diff
Normal file
@ -0,0 +1,43 @@
|
||||
From ebc708a1e635a67e0da7f686ea97bffd040b770a Mon Sep 17 00:00:00 2001
|
||||
From: German Semenov <GermanAizek@yandex.ru>
|
||||
Date: Fri, 2 Jun 2023 02:03:21 +0300
|
||||
Subject: [PATCH] Optimize compile time, maximum speed optimization, remove avx instructions
|
||||
|
||||
---
|
||||
SConstruct | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index b65e089f8ee..74811ccc25c 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -312,7 +312,7 @@ add_option(
|
||||
'dbg',
|
||||
choices=['on', 'off'],
|
||||
const='on',
|
||||
- default=build_profile.dbg,
|
||||
+ default='off',
|
||||
help='Enable runtime debugging checks',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -349,7 +349,7 @@ add_option(
|
||||
'opt',
|
||||
choices=['on', 'debug', 'size', 'off', 'auto'],
|
||||
const='on',
|
||||
- default=build_profile.opt,
|
||||
+ default='on',
|
||||
help='Enable compile-time optimization',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -375,7 +375,7 @@ add_option(
|
||||
action="append",
|
||||
choices=experimental_optimization_choices,
|
||||
const=experimental_optimization_choices[0],
|
||||
- default=['+sandybridge'],
|
||||
+ default=['+O3'],
|
||||
help='Enable experimental optimizations',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
--
|
||||
2.34.1
|
||||
|
43
os_patch.diff
Normal file
43
os_patch.diff
Normal file
@ -0,0 +1,43 @@
|
||||
From ebc708a1e635a67e0da7f686ea97bffd040b770a Mon Sep 17 00:00:00 2001
|
||||
From: German Semenov <GermanAizek@yandex.ru>
|
||||
Date: Fri, 2 Jun 2023 02:03:21 +0300
|
||||
Subject: [PATCH] Optimize compile time, maximum speed optimization, remove avx instructions
|
||||
|
||||
---
|
||||
SConstruct | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index b65e089f8ee..74811ccc25c 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -312,7 +312,7 @@ add_option(
|
||||
'dbg',
|
||||
choices=['on', 'off'],
|
||||
const='on',
|
||||
- default=build_profile.dbg,
|
||||
+ default='off',
|
||||
help='Enable runtime debugging checks',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -349,7 +349,7 @@ add_option(
|
||||
'opt',
|
||||
choices=['on', 'debug', 'size', 'off', 'auto'],
|
||||
const='on',
|
||||
- default=build_profile.opt,
|
||||
+ default='size',
|
||||
help='Enable compile-time optimization',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
@@ -375,7 +375,7 @@ add_option(
|
||||
action="append",
|
||||
choices=experimental_optimization_choices,
|
||||
const=experimental_optimization_choices[0],
|
||||
- default=['+sandybridge'],
|
||||
+ default=[],
|
||||
help='Enable experimental optimizations',
|
||||
nargs='?',
|
||||
type='choice',
|
||||
--
|
||||
2.34.1
|
||||
|
Loading…
Reference in New Issue
Block a user