Skip to content

Commit 7b2a6d3

Browse files
committed
perf(es/minifier): Prevent double boxing
1 parent e5ea286 commit 7b2a6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/swc_ecma_minifier/src/program_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub(crate) struct VarUsageInfo {
120120
/// PR. (because it's hard to review)
121121
infects_to: Vec<Access>,
122122
/// Only **string** properties.
123-
pub(crate) accessed_props: Box<FxHashMap<Atom, u32>>,
123+
pub(crate) accessed_props: FxHashMap<Atom, u32>,
124124

125125
pub(crate) used_recursively: bool,
126126
}
@@ -294,7 +294,7 @@ impl Storage for ProgramData {
294294

295295
e.get_mut().assigned_fn_local &= var_info.assigned_fn_local;
296296

297-
for (k, v) in *var_info.accessed_props {
297+
for (k, v) in var_info.accessed_props {
298298
*e.get_mut().accessed_props.entry(k).or_default() += v;
299299
}
300300

0 commit comments

Comments
 (0)