Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-716

swapCase and *capitalize speedups

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: lang.*, lang.text.*
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              scop Ville Skyttä
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: