[
https://issues.apache.org/jira/browse/LANG-1585?focusedWorklogId=464073&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-464073
]
ASF GitHub Bot logged work on LANG-1585:
----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Jul/20 07:59
Start Date: 29/Jul/20 07:59
Worklog Time Spent: 10m
Work Description: XenoAmess commented on pull request #574:
URL: https://github.com/apache/commons-lang/pull/574#issuecomment-665137439
refined the tests.
full jmh test at: https://pastebin.ubuntu.com/p/FhWRhHx6v6/
in short:
```
Benchmark Mode Cnt Score Error Units
StringUtilsNormalizeSpaceTest.testNew avgt 5 1732.831 ?127.293 ns/op
StringUtilsNormalizeSpaceTest.testNew2 avgt 5 437.049 ? 29.495 ns/op
StringUtilsNormalizeSpaceTest.testOld avgt 5 574.871 ? 46.116 ns/op
```
indicates:
New, New2, Old is 3 version of a same function.
we of course should choose the fastest one, means New2 here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 464073)
Time Spent: 40m (was: 0.5h)
> refine performance of StringUtils.normalizeSpace
> ------------------------------------------------
>
> Key: LANG-1585
> URL: https://issues.apache.org/jira/browse/LANG-1585
> Project: Commons Lang
> Issue Type: Sub-task
> Reporter: Jin Xu
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> [https://github.com/apache/commons-lang/pull/574]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)