nativeAOT, calling AddAWSLambdaHosting, file size increases 6MB #1906
Unanswered
sudoudaisuke
asked this question in
Q&A
Replies: 1 comment
-
@sudoudaisuke When I want to understand the size of a Native AOT executable I use this tool. https://github.com/MichalStrehovsky/sizoscope |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I'm building dotnet AOT binary. when I call builder.Services.AddAWSLambdaHosting()`, the file size increases by 6MB. How do I reduce file size, for API Gateway and Lambda.
without AddAWSLambdaHosting: 7,976,992 bytes
with AddAWSLambdaHosting: 13,929,400 bytes
[environment]
dotnet: 9.0 with publishaot
framework: asp.net minimal api
library: Amazon.Lambda.AspNetCoreServer.Hosting 1.7.3
runtime: ApiGateway HTTP API + AWS Lambda x86_64 Container ( public.ecr.aws/lambda/provided:al2023 )
[Program.cs]
[sample.csproj]
[dockerfile]
Beta Was this translation helpful? Give feedback.
All reactions