Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] update AOT profile for .NET 8.0.100-rc.2.23468.1 #17624

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

jonathanpeppers
Copy link
Member

I recorded this profile with current dotnet/maui/main merged into the net8.0 branch. I wanted to make sure latest changes in MAUI were in the profile.

An average of 10 runs of a dotnet new maui app on a Pixel 5, the new profile gives us some good numbers:

Average(ms): 589.4
Std Err(ms): 4.28226316073379
Std Dev(ms): 13.5417051281505

Previously, in edb7f12 .NET 8 RC 1 we got:

Average(ms): 607.8
Std Err(ms): 2.94316534061922
Std Dev(ms): 9.307106006822

Before that in 3f22153 we got:

Average(ms): 588.5
Std Err(ms): 2.21233913413935
Std Dev(ms): 6.99603062060512

With these results, I believe we have solved any startup regressions that were present in .NET 8 RC 1.

Most notably, I think these two helped the most:

I recorded this profile with current dotnet/maui/main merged into the
`net8.0` branch. I wanted to make sure latest changes in MAUI were in
the profile.

An average of 10 runs of a dotnet new maui app on a Pixel 5, the new
profile gives us some good numbers:

    Average(ms): 589.4
    Std Err(ms): 4.28226316073379
    Std Dev(ms): 13.5417051281505

Previously, in edb7f12 .NET 8 RC 1 we got:

    Average(ms): 607.8
    Std Err(ms): 2.94316534061922
    Std Dev(ms): 9.307106006822

Before that in 3f22153 we got:

    Average(ms): 588.5
    Std Err(ms): 2.21233913413935
    Std Dev(ms): 6.99603062060512

With these results, I believe we have solved any startup regressions
that were present in .NET 8 RC 1.

Most notably, I think these two helped the most:

* dotnet/android@eb6397d
* dotnet/runtime@fecf3ee
Comment on lines -1642 to -1646
Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder:<.ctor>b__14_0 (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey,Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite)
Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder:BuildType (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite)
Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder:BuildTypeNoCache (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite)
Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod System.Collections.Concurrent.ConcurrentDictionary`2<Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey, Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod>:GetOrAdd (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey,System.Func`3<Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCacheKey, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/GeneratedMethod>,Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite)
Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/ILEmitResolverBuilderRuntimeContext Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder:GenerateMethodBody (Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite,System.Reflection.Emit.ILGenerator)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good Microsoft.Extensions is not using System.Reflection.Emit anymore.

@rmarinho rmarinho enabled auto-merge (squash) September 25, 2023 15:40
@rmarinho rmarinho merged commit 2d8cf28 into net8.0 Sep 25, 2023
@rmarinho rmarinho deleted the aotprofile-net8rc2 branch September 25, 2023 16:47
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
@samhouts samhouts added the fixed-in-8.0.0-rc.2.9373 Look for this fix in 8.0.0-rc.2.9373! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-8.0.0-rc.2.9373 Look for this fix in 8.0.0-rc.2.9373! platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants