Skip to content

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.

3 participants