improve func packCommand performance, the more args the more obvious effects