Skip to content

Commit ad217ee

Browse files
authored
1 parent bb48aa3 commit ad217ee

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

aptos-move/aptos-release-builder/src/components/framework.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ pub fn generate_upgrade_proposals(
107107
with_error_map: true,
108108
skip_fetch_latest_git_deps: false,
109109
bytecode_version: Some(config.bytecode_version),
110-
experiments: vec!["extended-framework-optimizations=on".to_string()],
110+
// enable inline optimization for framework packages
111+
experiments: vec![
112+
"optimize-extra=on".to_string(),
113+
"extended-framework-optimizations=on".to_string(),
114+
],
111115
..BuildOptions::default()
112116
};
113117
let package = BuiltPackage::build(package_path, options)?;

aptos-move/framework/src/aptos.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ impl ReleaseTarget {
126126
output_format: None,
127127
}),
128128
skip_fetch_latest_git_deps: true,
129-
experiments: vec!["extended-framework-optimizations=on".to_string()],
129+
// enable inline optimization for framework packages
130+
experiments: vec![
131+
"optimize-extra=on".to_string(),
132+
"extended-framework-optimizations=on".to_string(),
133+
],
130134
..BuildOptions::default()
131135
},
132136
packages: packages

third_party/move/move-compiler-v2/src/experiments.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub static EXPERIMENTS: Lazy<BTreeMap<String, Experiment>> = Lazy::new(|| {
109109
Experiment {
110110
name: Experiment::INLINING_OPTIMIZATION.to_string(),
111111
description: "Turns on or off inlining optimizations".to_string(),
112-
default: Inherited(Experiment::EXTENDED_FRAMEWORK_OPTIMIZATIONS.to_string()),
112+
default: Inherited(Experiment::OPTIMIZE_EXTRA.to_string()),
113113
},
114114
Experiment {
115115
name: Experiment::ACROSS_PACKAGE_INLINING.to_string(),
@@ -155,7 +155,7 @@ pub static EXPERIMENTS: Lazy<BTreeMap<String, Experiment>> = Lazy::new(|| {
155155
Experiment {
156156
name: Experiment::OPTIMIZE_EXTRA.to_string(),
157157
description: "Use extra optimizations".to_string(),
158-
default: Inherited(Experiment::EXTENDED_FRAMEWORK_OPTIMIZATIONS.to_string()),
158+
default: Given(false),
159159
},
160160
Experiment {
161161
name: Experiment::OPTIMIZE_WAITING_FOR_COMPARE_TESTS.to_string(),
@@ -300,7 +300,7 @@ pub static EXPERIMENTS: Lazy<BTreeMap<String, Experiment>> = Lazy::new(|| {
300300
},
301301
Experiment {
302302
name: Experiment::EXTENDED_FRAMEWORK_OPTIMIZATIONS.to_string(),
303-
description: "Turns on or off extended framework optimizations".to_string(),
303+
description: "Set of optimizations that are safe to perform on the framework, but are disabled otherwise".to_string(),
304304
default: Given(false),
305305
},
306306
];

0 commit comments

Comments
 (0)