Author here.
True, optimize code for JS engines is certainly an art form of its own. What usually works for me is to write boring imperative code when performance is a requirement. That seems to be easily optimizable by current engines.
Also, thanks for sharing my article here on HN. First time for me one of them is on HN.