Which logic is more efficient?