Performance improvement to pn.js - pn.aargs_