-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Reduce record usage in published aspnetcore projects #45859
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
@eerhardt Part of publish size effort. |
Thanks for contacting us. We're moving this issue to the |
Those are all places where
aspnetcore/src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs Line 601 in 493407b
aspnetcore/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicStreamContext.FeatureCollection.cs Line 18 in 493407b
Line 258 in 493407b
Line 118 in 493407b
|
@eerhardt @captainsafia where do you think this sits in terms of priority right now. I think the work is still valid, but perhaps a lower priority for now? |
Yeah, it's pretty low on the priority list IMO. The only case that I would think is high priority is to ensure we don't ship any "new" public record types in .NET 8. If there are ones we added in 8, making them normal classes would be important. |
would we take community changes for it - should it be 'help wanted' - or not a good candidate? |
Agree that this is a good candidate for help wanted! I've gone ahead and updated @brunolins16's comment to reflect the the fact that records were removed from RDG so the listi s more accurate for contributors. |
Here are some other
aspnetcore/src/Components/Components/src/ComponentFactory.cs Lines 123 to 125 in e1f6684
Lines 159 to 164 in e1f6684
aspnetcore/src/Components/Endpoints/src/Rendering/EndpointHtmlRenderer.Streaming.cs Line 248 in e1f6684
aspnetcore/src/Components/Web/src/Forms/ExpressionFormatting/ExpressionFormatter.cs Line 266 in e1f6684
aspnetcore/src/Components/WebAssembly/Server/src/TargetPickerUi.cs Lines 428 to 436 in e1f6684
|
records have a slim syntax and provide many features, but they also generate a lot of code. And much of that code can't be trimmed. A record can bloat app publish size.
See #45604 (comment) for an example.
The text was updated successfully, but these errors were encountered: