Skip to content

Fix Base64 decoding regressions from whitespace handling - #86396

Merged
stephentoub merged 3 commits into
dotnet:mainfrom
stephentoub:fixbase64regression
May 18, 2023
Merged

Fix Base64 decoding regressions from whitespace handling#86396
stephentoub merged 3 commits into
dotnet:mainfrom
stephentoub:fixbase64regression

Conversation

@stephentoub

Copy link
Copy Markdown
Member

Put the main code paths back to how they were before, with the sole exception being an extra method argument and an extra check in the InvalidData exit section that delegates to a helper if that method argument is true.

Fixes #86336
Fixes dotnet/perf-autofiling-issues#17837

Put the main code paths back to how they were before, with the sole exception being an extra method argument and an extra check in the InvalidData exit section that delegates to a helper if that method argument is true.
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 17, 2023
@ghost ghost assigned stephentoub May 17, 2023
@stephentoub

Copy link
Copy Markdown
Member Author

(Note there also appears to be a stale static PGO data aspect to the cited regressions on coreclr.)

@stephentoub stephentoub added area-System.Memory and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 17, 2023
@ghost

ghost commented May 17, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

Issue Details

Put the main code paths back to how they were before, with the sole exception being an extra method argument and an extra check in the InvalidData exit section that delegates to a helper if that method argument is true.

Fixes #86336
Fixes dotnet/perf-autofiling-issues#17837

Author: stephentoub
Assignees: stephentoub
Labels:

area-System.Memory, needs-area-label

Milestone: -

@stephentoub

Copy link
Copy Markdown
Member Author

cc: @gfoidl

@gfoidl gfoidl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes, otherwise LGTM. Nice layering 👍🏻

Comment thread src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs Outdated
Comment thread src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs Outdated
Comment thread src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs Outdated
Comment thread src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs Outdated

@adamsitnik adamsitnik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@adamsitnik adamsitnik added the tenet-performance Performance related issue label May 18, 2023
@stephentoub
stephentoub merged commit 2f18df4 into dotnet:main May 18, 2023
@stephentoub
stephentoub deleted the fixbase64regression branch May 18, 2023 13:21
@ghost ghost locked as resolved and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regressions in System.Buffers.Text.Tests.Base64EncodeDecodeInPlaceTests [Perf] Linux/x64: 2 Regressions on 5/9/2023 7:00:05 PM

3 participants