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] AOT profiles for .NET 8 Preview 4 #14838

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

jonathanpeppers
Copy link
Member

Updated the profile, following the instructions in:

src/ProfiledAot/README.md

Testing a dotnet new maui project on a Pixel 5:

Before:
Average(ms): 568
Std Err(ms): 2.21610268514595
Std Dev(ms): 7.00793201387621
After:
Average(ms): 548.5
Std Err(ms): 2.65518360947035
Std Dev(ms): 8.39642781187333

Most notably calls to System.Reflection.Emit are now gone, after we landed:

dotnet/android#7972

Updated the profile, following the instructions in:

    src/ProfiledAot/README.md

Testing a `dotnet new maui` project on a Pixel 5:

    Before:
    Average(ms): 568
    Std Err(ms): 2.21610268514595
    Std Dev(ms): 7.00793201387621
    After:
    Average(ms): 548.5
    Std Err(ms): 2.65518360947035
    Std Dev(ms): 8.39642781187333

Most notably calls to System.Reflection.Emit are now gone, after we
landed:

dotnet/android#7972
@jonathanpeppers jonathanpeppers added the legacy-area-perf Startup / Runtime performance label Apr 28, 2023
Comment on lines -7135 to -7152
void System.Reflection.Emit.DynamicMethod:.cctor ()
void System.Reflection.Emit.DynamicMethod:.ctor (string,System.Type,System.Type[],System.Reflection.Module,bool)
void System.Reflection.Emit.DynamicMethod:create_dynamic_method (System.Reflection.Emit.DynamicMethod,string,System.Reflection.MethodAttributes,System.Reflection.CallingConventions)
void System.Reflection.Emit.DynamicMethod:CreateDynMethod ()
void System.Reflection.Emit.DynamicMethod:Init (string,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[],System.Type,System.Reflection.Module,bool,bool)
void System.Reflection.Emit.ILGenerator:.ctor (System.Reflection.Module,System.Reflection.Emit.ITokenGenerator,int)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode,int)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode,System.Reflection.ConstructorInfo)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode,System.Reflection.FieldInfo)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode,System.Reflection.MethodInfo)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode,System.Type)
void System.Reflection.Emit.ILGenerator:Emit (System.Reflection.Emit.OpCode)
void System.Reflection.Emit.ILGenerator:emit_int (int)
void System.Reflection.Emit.ILGenerator:label_fixup (System.Reflection.MethodBase)
void System.Reflection.Emit.ILGenerator:ll_emit (System.Reflection.Emit.OpCode)
void System.Reflection.Emit.ILGenerator:make_room (int)
void System.Reflection.Emit.OpCodes:.cctor ()
void System.Reflection.Emit.RuntimeModuleBuilder:.cctor ()
Copy link
Member Author

Choose a reason for hiding this comment

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

Yay! These are gone now.

@mattleibow mattleibow merged commit f24e8da into dotnet:net8.0 Apr 29, 2023
29 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
@Eilon Eilon added the t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy-area-perf Startup / Runtime performance platform/android 🤖 t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants