refact(ngClass): improve performance through bitwise operations
Change modulo % 2 operations to bitwise & 1 Read about this in Nicholas C. Zakas book "High Performance JavaScript"(ISBN: 978-0-596-80279-0) Use the Fast Parts --> Bitwise Operators --> Page 156++ Proven at http://jsperf.com/modulo-vs-bitwise/11
R
Robin Böhm committed
cb62a57d438f94dff32218ba095a6a63b1db958f
Parent: 61c0ade
Committed by Pete Bacon Darwin <pete@bacondarwin.com>
on 4/29/2013, 9:19:07 AM