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

Mark XxHash64.Complete as noinline #90142

Merged
merged 3 commits into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ private static ulong ApplyRound(ulong acc, ulong lane)
return acc;
}

// Inliner may decide to inline this method into HashToUInt64() with help of PGO and
// can run out of "time budget" producing non-inlined simple calls such as Span.Slice.
// TODO: Remove NoInlining when https://github.com/dotnet/runtime/issues/85531 is fixed.
[MethodImpl(MethodImplOptions.NoInlining)]
EgorBo marked this conversation as resolved.
Show resolved Hide resolved
internal readonly ulong Complete(long length, ReadOnlySpan<byte> remaining)
{
ulong acc = _hadFullStripe ? Converge() : _smallAcc;
Expand Down