performance tweaks
performance tweaks

* strict equality tests
* regex /S optimize flag
* omit cast to bool in while
* empty instead of counting

with xdebug on, this got me 50% faster generation (10 instead of 20s)
without xdebug its barely noticible

zhangjingpu/JShrink,Dubz/JShrink,tedious/JShrink,jianlinwei/JShrink,zhangjingpu/JShrink,Dubz/JShrink,tedious/JShrink,jianlinwei/JShrink,Dubz/JShrink,jianlinwei/JShrink,tedious/JShrink,zhangjingpu/JShrink