[
https://issues.apache.org/jira/browse/LANG-1576?focusedWorklogId=471050&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-471050
]
ASF GitHub Bot logged work on LANG-1576:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Aug/20 09:10
Start Date: 15/Aug/20 09:10
Worklog Time Spent: 10m
Work Description: sebbASF commented on pull request #565:
URL: https://github.com/apache/commons-lang/pull/565#issuecomment-674371834
I think the current huge list of input strings is more about testing
functionality rather than performance.
The method only cares about 3 characters: CR, LF or something else (unless
it has a bug).
So the performance test needs to check those in various combinations. I
think that is just 9 combinations.
It also needs to test the length, because that is used when doing the
substring.
The method is likely to be used with textual input so it would make sense to
try with a selection of lengths.
Not sure what the maximum should be, probably at least 1000, maybe
considerably more.
It might make sense to do these as separate tests to see if the length
affects the performance.
----------------------------------------------------------------
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: 471050)
Time Spent: 7h (was: 6h 50m)
> refine StringUtils.chomp
> ------------------------
>
> Key: LANG-1576
> URL: https://issues.apache.org/jira/browse/LANG-1576
> Project: Commons Lang
> Issue Type: Sub-task
> Reporter: Jin Xu
> Priority: Minor
> Time Spent: 7h
> Remaining Estimate: 0h
>
> [https://github.com/apache/commons-lang/pull/565]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)