Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
1.1
-
None
Description
The current implementation of capitalize, uncapitalize and initials in WordUtils calls isDelimiter for every character and/or codepoint and isDelimiter loops through the array of delimiters to check for the occurrence. This is a bit inefficient and results in O(nk) complexity and it can be reduced to O( n )[if n>k] or O( k ) [if k>n].
Attachments
Issue Links
- links to