I made micro benchmark with 300000 iterations. Your approach took 1,2 s ; mine 0,8 s. So the explode thing is faster :).