mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
perf: less aggresive dyn import polling (#2858)
This commit is contained in:
parent
249db0f7d9
commit
5c7c876a71
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user