See #829 - some performance tweaks.
See #829 - some performance tweaks.

Why:

* Uses flat loops instead of callbacks;
* Checks for number of matches before invoking costly calculations.

jakubpawlowicz/clean-css