commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ville Skyttä (JIRA) <>
Subject [jira] [Created] (LANG-715) CharSetUtils.squeeze() speedup
Date Sun, 10 Jul 2011 12:32:03 GMT
CharSetUtils.squeeze() speedup

                 Key: LANG-715
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
    Affects Versions: 3.0
            Reporter: Ville Skyttä
            Priority: Minor
         Attachments: squeeze-speedup.patch

The attached patch speeds up CharSetUtils.squeeze() by avoiding unnecessary calls to CharSet.contains().
 It should not slow down any cases, and in my tests with some use cases that I consider fairly
common ones I got up to sixfold speedups with the patch.

It's not that squeeze() would be that slow in the first place before the patch; I just happened
to be playing around with caliper ( and squeeze() was one
of the first things I tried it with.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message