summaryrefslogtreecommitdiff
path: root/cli/mainrt.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-24 15:48:48 -0400
committerGitHub <noreply@github.com>2024-10-24 19:48:48 +0000
commiteedf243b5ea98d22649bb0445444719a2fc12c59 (patch)
tree8f31d76e6223c195afb848f42d1ec7b9115bc7e1 /cli/mainrt.rs
parentea641897c92e3975dd102b31c1419720df358d12 (diff)
perf(compile): pass module source data from binary directly to v8 (#26494)
This changes denort to pass a static reference of the moude source bytes found in the binary to v8 instead of copying it.
Diffstat (limited to 'cli/mainrt.rs')
-rw-r--r--cli/mainrt.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/cli/mainrt.rs b/cli/mainrt.rs
index 02d58fcee..f5b798f81 100644
--- a/cli/mainrt.rs
+++ b/cli/mainrt.rs
@@ -88,11 +88,10 @@ fn main() {
let standalone = standalone::extract_standalone(Cow::Owned(args));
let future = async move {
match standalone {
- Ok(Some(future)) => {
- let (metadata, eszip) = future.await?;
- util::logger::init(metadata.log_level);
- load_env_vars(&metadata.env_vars_from_env_file);
- let exit_code = standalone::run(eszip, metadata).await?;
+ Ok(Some(data)) => {
+ util::logger::init(data.metadata.log_level);
+ load_env_vars(&data.metadata.env_vars_from_env_file);
+ let exit_code = standalone::run(data).await?;
std::process::exit(exit_code);
}
Ok(None) => Ok(()),