Simple line layout: Small tweaks to improve performance.