improve line marker performance