-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Reduce the size of the Developer Exception Page in NativeAOT #46969
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
Comments
Maybe this is helping to the size increase #46339 |
@brunolins16 yeah good point. @eerhardt I think we need to strive to keep the developer exception page in the experience one way or another, whether it's by reducing its size, removing it from slim builder and adding it to the template, or whatever we end up doing for #46096. Seems prudent to first start with trying to reduce the size via the identified leads. |
To learn more about what this message means, what to expect next, and how this issue will be handled you can read our Triage Process document. |
In investigating size of NativeAOT apps, one area of additional size is app.UseDeveloperExceptionPage().
When comparing the win-x64 sizes before and after adding the
app.UseDeveloperExceptionPage()
line, I see the following sizes:This means adding
app.UseDeveloperExceptionPage()
adds about 550 KB of app size.We should investigate if there is a way to make this feature smaller. One way to make it smaller is #46915. There may be other optimization we could make to reduce app size. For example, maybe eliminating
System.Linq
usages. Another option is removingUseDeveloperExceptionPage()
from CreateSlimBuilder and make it optional for the app to add it (possibly putting it into thedotnet new api
template).cc @DamianEdwards @halter73 @amcasey @captainsafia
The text was updated successfully, but these errors were encountered: