Reland: Increase threshold for usage of compute for utf8 decoding on large strings to 50 KB (#64498)

This commit is contained in:
Jonah Williams
2020-08-24 17:01:04 -07:00
committed by GitHub
parent d1de20c5b7
commit 54e2a0e694
2 changed files with 8 additions and 4 deletions

View File

@@ -562,9 +562,11 @@ class HotRunner extends ResidentRunner {
} on vm_service.RPCError {
// Do nothing, we're already subcribed.
}
// Ideally this would wait for kIsolateRunnable, but either this subscription occurs too
// late to receive the event, or it is not forwarded for hot restarted isolates.
isolateNotifications.add(
device.vmService.onIsolateEvent.firstWhere((vm_service.Event event) {
return event.kind == vm_service.EventKind.kIsolateRunnable;
return event.kind == vm_service.EventKind.kServiceExtensionAdded;
}),
);
}