It's wearied that how the compute method works smooth in debug but freeze the UI in profile and release.
I uploaded a project to test the issue you GitHub Link
As I know dart JIT and AOT should behave the same!.
I tested it on different android devices and windows as well, I also tried using isolate and changing the extension method to normal function but no luck.