In my .NET MAUI App I was using an await Task.Run(() => ...);
to do a Branch and Bound Calculation. Within that there is also an Task.Run(() => ...);
.
So far it was running good, but not fast enough for what I was used to. Then I started to optimize my calculations. The Tests for my calculations are running in a separate csproj and are executed within Milliseconds, now. So I am happy with that.
To optimize the Algorithm I used a Parallel.Ivoke(...) with 2 Threads to do a parallel calculation.
But now, back on my .NET MAUI App on Android Emulator - Pixel 5 API 33 it is very slow. I don't get it how this could happen since my Tests are 127 times faster now.
Is it possible that on the Android Emulator - Pixel 5 API 33 I can't use parallelization and the Parallel.Invoke(...) and Task.Run(...) are not possible?
============ Running App without Debugger ===============