Skip to content

Base64: Speedup decoding fix 2 #2801

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

Merged
merged 1 commit into from
May 21, 2020

Conversation

spevans
Copy link
Contributor

@spevans spevans commented May 20, 2020

  • Change the output buffer of NSData.base64DecodeBytes() from a [UInt8]
    to an UnsafeMutableRawBufferPointer to avoid copying the result when
    initialising the NSData object.

There are some benchmarks for the decoding PRs @ http://si.org/posts/2020/05/base64-decoding.html

- Change the output buffer of NSData.base64DecodeBytes() from a [UInt8]
  to an UnsafeMutableRawBufferPointer to avoid copying the result when
  initialising the NSData object.
@spevans
Copy link
Contributor Author

spevans commented May 20, 2020

@swift-ci please test

@spevans
Copy link
Contributor Author

spevans commented May 21, 2020

@swift-ci test and merge

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented May 21, 2020

@swift-ci test and merge

@swift-ci swift-ci merged commit 84f581d into swiftlang:master May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants