You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ville Skyttä (JIRA)" <ji...@apache.org> on 2011/07/10 14:50:00 UTC

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

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

       

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

Posted by "Gary D. Gregory (JIRA)" <ji...@apache.org>.
     [ 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

       

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

Posted by "Ville Skyttä (JIRA)" <ji...@apache.org>.
     [ 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