Open rlueders opened 1 week ago
Also, the tests in my above comment were running on the latest stable Flutter release (3.24.4) on a physical iPhone 12 Pro Max.
Digging a little deeper, this appears to have something to do with thread prioritization on IOS. For example, running the CPU profiler from xCode with Flutter Isolate I observe CPU usage of around 800% but with Dart UI Isolate, CPU usage is around 300%. To reiterate, the only thing changing between these two tests is the Isolate package being used. Also, it appears that that this issue only affects IOS as my testing on Android does not indicate any performance disparity between the two packages.
Flutter Isolate:
Dart UI Isolate
I switched to Dart UI Isolate earlier this year. A few days ago I noticed my print statements from the Dart UI Isolates were not showing up in the console. I tried switching back to Flutter Isolates to to see print statements would appear and indeed they did. I also noticed that the performance of the isolates roughly doubled. That is, the Flutter Isolates were performing twice as fast as the Dart UI Isolates. I'm not really sure how this is possible. I would do some more troubleshooting but I'm not really sure were to start since I am merely switching the pub reference from dart_ui_isolate to fluter_isolate.