reduce process.nextTick to improve performance