diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-11-26 20:48:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 04:48:17 +0000 |
commit | 9ffc6acdbb3326dde74c803332547b0ae33e483a (patch) | |
tree | e3d45392c1f6d41fac66f59c2f216f81b9a86c6e /ops/lib.rs | |
parent | 0012484f4f194664bea87879ab9f4f20f4ee86c6 (diff) |
perf(ops): Reenable fast unit result optimization (#16827)
The optimization was missed in the optimizer rewrite
https://github.com/denoland/deno/pull/16514
Diffstat (limited to 'ops/lib.rs')
-rw-r--r-- | ops/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ops/lib.rs b/ops/lib.rs index a5c196c04..971b0dfa0 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -76,10 +76,11 @@ impl Op { fn gen(mut self) -> TokenStream2 { let mut optimizer = Optimizer::new(); match optimizer.analyze(&mut self) { - Ok(_) | Err(BailoutReason::MustBeSingleSegment) => {} - Err(BailoutReason::FastUnsupportedParamType) => { + Err(BailoutReason::MustBeSingleSegment) + | Err(BailoutReason::FastUnsupportedParamType) => { optimizer.fast_compatible = false; } + _ => {} }; let Self { |