Skip to content
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

LANG-1675 - Improve performance of StringUtils.join for primitives - preview #4

Closed
wants to merge 4 commits into from

Conversation

HubertWo
Copy link
Owner

@HubertWo HubertWo commented Oct 9, 2021

This PR replaces StringJoiner to StringBuilder in StringUtils.join methods.
The change is limited to methods which use primitives as input only.

More

Please find more details here:

  1. https://issues.apache.org/jira/browse/LANG-1675
    2.[LANG-1593] Common behavior for StringUtils join APIs when called with char or String delimiter apache/commons-lang#784

JMH with example results

JMH tests - StringBuilder vs StringJoiner may be found in dedicated repository:
https://github.com/HubertWo/apache-commons-lang-jmh

@HubertWo HubertWo changed the title LANG-1675 - Improve performance of StringUtils.join for primitives LANG-1675 - Improve performance of StringUtils.join for primitives - preview Oct 9, 2021
@garydgregory
Copy link

14 files changed? It looks like you need to rebase on master.

@HubertWo HubertWo closed this Oct 10, 2021
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