diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-09-04 16:37:21 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-04 10:37:21 -0400 |
commit | 5c7c876a71bb15a2176b555d9d88621e26e9ab99 (patch) | |
tree | 11aae7200e51eaa1bf8168d73cd4d722700476ad | |
parent | 249db0f7d91d5e895906078f92b7d31c76b96121 (diff) |
perf: less aggresive dyn import polling (#2858)
-rw-r--r-- | core/isolate.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index a5e659c9a..bad79b579 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -645,7 +645,9 @@ impl Future for Isolate { loop { // If there are any pending dyn_import futures, do those first. - self.poll_dyn_imports()?; + if !self.pending_dyn_imports.is_empty() { + self.poll_dyn_imports()?; + } // Now handle actual ops. self.have_unpolled_ops = false; |