performance: speed up getSetting by removing Array.prototype.slice and apply