[jira] [Created] (LANG-716) swapCase and *capitalize speedups

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LANG-716) swapCase and *capitalize speedups

ASF GitHub Bot (Jira)
swapCase and *capitalize speedups
---------------------------------

                 Key: LANG-716
                 URL: https://issues.apache.org/jira/browse/LANG-716
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*, lang.text.*
    Affects Versions: 3.0
            Reporter: Ville Skyttä
            Priority: Minor
         Attachments: swapcase-capitalize-speedups.patch

The attached patch speeds up swapCase() and *capitalize() by ~30% in my tests, and I don't think they'll slow down any cases.

It's not that these methods are that slow to begin with, but I happened to be playing around with caliper (http://code.google.com/p/caliper/) and commons-lang and thought I'd just submit the patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-716) swapCase and *capitalize speedups

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ville Skyttä updated LANG-716:
------------------------------

    Attachment: swapcase-capitalize-speedups.patch

> swapCase and *capitalize speedups
> ---------------------------------
>
>                 Key: LANG-716
>                 URL: https://issues.apache.org/jira/browse/LANG-716
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*, lang.text.*
>    Affects Versions: 3.0
>            Reporter: Ville Skyttä
>            Priority: Minor
>              Labels: patch
>         Attachments: swapcase-capitalize-speedups.patch
>
>
> The attached patch speeds up swapCase() and *capitalize() by ~30% in my tests, and I don't think they'll slow down any cases.
> It's not that these methods are that slow to begin with, but I happened to be playing around with caliper (http://code.google.com/p/caliper/) and commons-lang and thought I'd just submit the patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (LANG-716) swapCase and *capitalize speedups

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved LANG-716.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0
         Assignee: Gary D. Gregory

Patch applied. Thank you.

> swapCase and *capitalize speedups
> ---------------------------------
>
>                 Key: LANG-716
>                 URL: https://issues.apache.org/jira/browse/LANG-716
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*, lang.text.*
>    Affects Versions: 3.0
>            Reporter: Ville Skyttä
>            Assignee: Gary D. Gregory
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: swapcase-capitalize-speedups.patch
>
>
> The attached patch speeds up swapCase() and *capitalize() by ~30% in my tests, and I don't think they'll slow down any cases.
> It's not that these methods are that slow to begin with, but I happened to be playing around with caliper (http://code.google.com/p/caliper/) and commons-lang and thought I'd just submit the patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira