Skip to content

Reduce string allocations from adapting source#619

Merged
gettalong merged 1 commit into
gettalong:masterfrom
ashmaroli:optimize-adapt-source
Jul 16, 2019
Merged

Reduce string allocations from adapting source#619
gettalong merged 1 commit into
gettalong:masterfrom
ashmaroli:optimize-adapt-source

Conversation

@ashmaroli

@ashmaroli ashmaroli commented Jul 14, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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