diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-08 11:41:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 09:41:30 +0000 |
commit | 6fce23c54ec619168eee096fc7bf801d0cec0cb6 (patch) | |
tree | 211d715cf75817a09c63e6dad943d6623eef67f1 /cli/emit.rs | |
parent | 93d479252b5a18e6e782c74b808240bd3ef036bd (diff) |
perf: skip saving to emit cache after first failure (#24896)
Diffstat (limited to 'cli/emit.rs')
-rw-r--r-- | cli/emit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/emit.rs b/cli/emit.rs index 98ee59fab..61397d1ab 100644 --- a/cli/emit.rs +++ b/cli/emit.rs @@ -18,7 +18,7 @@ use deno_graph::ModuleGraph; use std::sync::Arc; pub struct Emitter { - emit_cache: EmitCache, + emit_cache: Arc<EmitCache>, parsed_source_cache: Arc<ParsedSourceCache>, transpile_and_emit_options: Arc<(deno_ast::TranspileOptions, deno_ast::EmitOptions)>, @@ -28,7 +28,7 @@ pub struct Emitter { impl Emitter { pub fn new( - emit_cache: EmitCache, + emit_cache: Arc<EmitCache>, parsed_source_cache: Arc<ParsedSourceCache>, transpile_options: deno_ast::TranspileOptions, emit_options: deno_ast::EmitOptions, |