-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
NegotiateAuthentication larger code size and also brings in BigInteger #90898
Comments
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones Issue DetailsAfaik the following PR #87930 is part of .NET 8.0 preview 7, it caused a 50kb size regression for us: preview 6: https://github.com/npgsql/npgsql/actions/runs/5930686472 Mostly due to it bringing in BigInteger (and a managed NegotiateAuthentication impl?) Not sure what we can or want to do here. /cc @filipnavara
|
what platforms is this on @NinoFloris? I think we do want to keep the managed implementation in. We can perhaps try to make it more trimming friendly. |
These builds were done on ubuntu |
It should be trimmed out on Linux for NativeAOT unless the |
Can you try adding this to the test app .csproj? <ItemGroup>
<RuntimeHostConfigurationOption Include="System.Net.Security.UseManagedNtlm" Value="false" Trim="true" />
</ItemGroup> Generally the idea is that the ILLink substitution (https://github.com/dotnet/runtime/blob/main/src/libraries/System.Net.Security/src/ILLink/ILLink.Substitutions.xml) will turn UPD: Apparently this doesn't help. :-/ |
I reread the ILLink documentation and it seems we are missing |
Does that mean it should be fixed for rc2 or where do we stand? Npgsql is a library, I can't ask people to flip these switches for us. |
I will try to submit the fix and then we can see about backports. |
I was not able to get |
Triage: @wfurt discussed it with @jkotas and his suggestion was to NOT take it for 8.0 as it is size improvement, but not functional impact. |
I generally agree it doesn't meet the bar for 8.0 servicing, but should we try to backport the SDK switch (dotnet/sdk#34903) to make the workaround easier? |
Thanks, @karelz we are. We have added an explicit opt-in to our slim builder for "integrated security" auth, sidestepping the issue. |
Yeah, agreed this isn't critical for a 8.0 backport. |
Afaik the following PR #87930 is part of .NET 8.0 preview 7, it caused a 60kb size regression for us:
preview 6: https://github.com/npgsql/npgsql/actions/runs/5930686472
preview 7: https://github.com/npgsql/npgsql/actions/runs/5931742857
Mostly due to it bringing in BigInteger (and a managed NegotiateAuthentication impl?)
Not sure what we can or want to do here.
/cc @filipnavara
The text was updated successfully, but these errors were encountered: