GitHub user rovarga opened a pull request:
https://github.com/apache/karaf/pull/368
Speed up string splitting operations
Instead of performing multiple String.indexOf(String) operations,
use String.indexOf(char) and cache its result.
Signed-off-by: Robert Varga <[email protected]>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rovarga/karaf indexof
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/368.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #368
----
commit bc2b75b2acea745abe8a1f049f0bc77d3f2a4a5d
Author: Robert Varga <[email protected]>
Date: 2017-09-14T14:54:46Z
Speed up string splitting operations
Instead of performing multiple String.indexOf(String) operations,
use String.indexOf(char) and cache its result.
Signed-off-by: Robert Varga <[email protected]>
----
---