add high performance version in duff.js