Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Improved performance of preconditions on strings #73

Merged
merged 1 commit into from Oct 23, 2011

Commits on Oct 21, 2011

  1. Improved performance of preconditions on strings.

    Replaced !regex.unapplySeq.isEmpty by regex.pattern.matcher(_).matches.
    
    This avoids a lot of allocations of unneeded objects and improves the 
    overall performance on Android by a factor of 2-3 (for my use case).
    Martin Kneissl committed Oct 21, 2011
    Copy the full SHA
    d9975e4 View commit details
    Browse the repository at this point in the history