MeasureTree optimization.