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]


Reply via email to