Skip to content

Use integer division trick to get exact base64 length - #50549

Merged
jkotas merged 2 commits into
dotnet:mainfrom
gfoidl:base64-len-perf
May 3, 2021
Merged

Use integer division trick to get exact base64 length #50549
jkotas merged 2 commits into
dotnet:mainfrom
gfoidl:base64-len-perf

Conversation

@gfoidl

@gfoidl gfoidl commented Apr 1, 2021

Copy link
Copy Markdown
Member

...and avoid (explicit) modulo operation.

Produces less machine code.

@ghost

ghost commented Apr 1, 2021

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Comment thread src/libraries/System.Private.CoreLib/src/System/Convert.cs
Comment thread src/libraries/System.Private.CoreLib/src/System/Convert.cs Outdated
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@ghost

ghost commented May 3, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @tannergooding
See info in area-owners.md if you want to be subscribed.

Issue Details

...and avoid (explicit) modulo operation.

Produces less machine code.

Author: gfoidl
Assignees: -
Labels:

area-System.Runtime

Milestone: -
@jkotas

jkotas commented May 3, 2021

Copy link
Copy Markdown
Member

Thank you!

@jkotas
jkotas merged commit 6df740b into dotnet:main May 3, 2021
@gfoidl
gfoidl deleted the base64-len-perf branch May 3, 2021 14:32
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.