Skip to content

Reduce string allocations from adapting source #619

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
Jul 16, 2019

Conversation

ashmaroli
Copy link
Contributor

@ashmaroli ashmaroli commented Jul 14, 2019

String#encode returns a copy of the given source string.
Subsequent operations on this copy can be made in place to avoid allocating intermediate strings.

@gettalong gettalong self-assigned this Jul 16, 2019
@gettalong gettalong merged commit 5ee3387 into gettalong:master Jul 16, 2019
@gettalong
Copy link
Owner

Thanks!

@ashmaroli ashmaroli deleted the optimize-adapt-source branch July 17, 2019 06:29
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