computeL optimization