Skip to content

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

Closed
HubertWo wants to merge 4 commits into
masterfrom
fix/LANG-1675_string_join_refactor
Closed

LANG-1675 - Improve performance of StringUtils.join for primitives - preview#4
HubertWo wants to merge 4 commits into
masterfrom
fix/LANG-1675_string_join_refactor

Conversation

@HubertWo

@HubertWo HubertWo commented Oct 9, 2021

Copy link
Copy Markdown
Owner

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

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