Skip to content

Base64: Speedup encoding fix 3 #2803

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
Jun 3, 2020

Conversation

spevans
Copy link
Contributor

@spevans spevans commented May 21, 2020

  • Pass UnsafeRawBufferPointers to NSData.base64EncodeBytes() and make
    the Data.base64EncodedString() and Data.base64EncodedData() methods
    call it directly.

  • There is considerable overhead in forwarding the methods from Data to
    NSData. Making the Data methods directly call NSData.base64EncodeBytes()
    removes this overhead.

@spevans
Copy link
Contributor Author

spevans commented May 21, 2020

@swift-ci test

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented May 22, 2020

@swift-ci test

@spevans spevans force-pushed the base64encode-speedup3 branch from f1160b7 to cd5f0e4 Compare May 29, 2020 23:30
@spevans
Copy link
Contributor Author

spevans commented May 29, 2020

@swift-ci test

@spevans
Copy link
Contributor Author

spevans commented May 29, 2020

@swift-ci please test

- Pass UnsafeRawBufferPointers to NSData.base64EncodeBytes() and make
  the Data.base64EncodedString() and Data.base64EncodedData() methods
  call it directly.

- There is considerable overhead in forwarding the methods from Data to
  NSData. Making the Data methods directly call NSData.base64EncodeBytes()
  removes this overhead.
@spevans spevans force-pushed the base64encode-speedup3 branch from cd5f0e4 to 0927904 Compare May 30, 2020 08:54
@spevans
Copy link
Contributor Author

spevans commented May 30, 2020

@swift-ci please test

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented May 30, 2020

@swift-ci please test

@spevans
Copy link
Contributor Author

spevans commented Jun 3, 2020

@swift-ci please test and merge

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented Jun 3, 2020

@swift-ci please test and merge

@swift-ci swift-ci merged commit 5db60c0 into swiftlang:master Jun 3, 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