perf: less aggresive dyn import polling (#2858)

This commit is contained in:
Bartek Iwańczuk 2019-09-04 16:37:21 +02:00 committed by Ryan Dahl
parent 249db0f7d9
commit 5c7c876a71

View File

@ -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;