Giter Club home page Giter Club logo

Comments (7)

jfversluis avatar jfversluis commented on July 22, 2024

@rolfbjarne ?

from maui.

rolfbjarne avatar rolfbjarne commented on July 22, 2024

If I understand correctly, the problem is that your code is executing slower with MAUI than it did with Xamarin.Forms.

Do you see the same behavior with a Release build? Is it faster than a Debug build, or is it just as slow?

from maui.

Jiang-Junjie avatar Jiang-Junjie commented on July 22, 2024

If I understand correctly, the problem is that your code is executing slower with MAUI than it did with Xamarin.Forms.

Do you see the same behavior with a Release build? Is it faster than a Debug build, or is it just as slow?

Yes, understand correctly. The problem was found in our release version. Therefore the release build not works faster. The release mode could make mostly process faster besides the EA function. I have no idea to make it faster now. If you could found other solutions for us to try, we will appreciate very much.

from maui.

rolfbjarne avatar rolfbjarne commented on July 22, 2024

Can you try adding this to your csproj:

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <MtouchExtraArgs>--require-pinvoke-wrappers:true</MtouchExtraArgs>
    <UseInterpreter>false</UseInterpreter>
</PropertyGroup>

and see if it makes a difference?

from maui.

Jiang-Junjie avatar Jiang-Junjie commented on July 22, 2024

Can you try adding this to your csproj:

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <MtouchExtraArgs>--require-pinvoke-wrappers:true</MtouchExtraArgs>
    <UseInterpreter>false</UseInterpreter>
</PropertyGroup>

and see if it makes a difference?

Thanks for sharing this, however it makes the application crashes when tapping it to start.

There is a little difference in my project that MtouchExtraArgs already exists following configuration:

<MtouchExtraArgs>--require-pinvoke-wrappers:true --optimize=experimental-xforms-product-type -cxx -gcc_flags ...<MtouchExtraArgs>

I just put --require-pinvoke-wrappers:true in the front of my current configuration.

from maui.

rolfbjarne avatar rolfbjarne commented on July 22, 2024

Thanks for sharing this, however it makes the application crashes when tapping it to start.

It sounds like your app requires the interpreter for some reason. The interpreter is slower than AOT-compiled code, but it shouldn't make this much of a difference.

So we can try to enable the interpreter, but AOT-compile every assembly, which should hopefully make your app not crash at launch:

<PropertyGroup>
    <MtouchInterpreter>-all</MtouchInterpreter>
</PropertyGroup>

Can you see if that works / changes anything?

from maui.

Jiang-Junjie avatar Jiang-Junjie commented on July 22, 2024

Thanks for sharing this, however it makes the application crashes when tapping it to start.

It sounds like your app requires the interpreter for some reason. The interpreter is slower than AOT-compiled code, but it shouldn't make this much of a difference.

So we can try to enable the interpreter, but AOT-compile every assembly, which should hopefully make your app not crash at launch:

<PropertyGroup>
    <MtouchInterpreter>-all</MtouchInterpreter>
</PropertyGroup>

Can you see if that works / changes anything?

Unfortunatly, it also not works as the same phenomenon. In addition, it will need more time to finish the build process almost above 6 mins.

As you said that, our project need UseInterpreter, and it exists in .csproj:

<PropertyGroup>
     ...
     <TargetFramework>net7.0-ios</TargetFramework>
     <OutputType>Exe</OutputType>
     <RootNamespace>PalmUI</RootNamespace>
     <UseMaui>true</UseMaui>
     <SingleProject>true</SingleProject>
     <ImplicitUsings>enable</ImplicitUsings>
     <UseInterpreter>true</UseInterpreter>
    ...
</PropertyGroup>

from maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.