See #829 - some performance tweaks.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 30 Dec 2016 21:50:09 +0000 (22:50 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 30 Dec 2016 21:50:09 +0000 (22:50 +0100)
commit19162d72769222f23fb2178ec4a2e6c1a532990b
treee97298a9b93529879d91fa198cbf58304336e811
parent2764f78ecb257ebc5d41889124c9b4aaa23f7536
See #829 - some performance tweaks.

Why:

* Uses flat loops instead of callbacks;
* Checks for number of matches before invoking costly calculations.
lib/optimizer/is-mergeable.js