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] [Updated] (LANG-716) swapCase and *capitalize speedups

     [ 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