Open
Description
Admittedly my test case (https://github.com/smmalis37/sudoku_rust) with over 700 labels visible at once may be a bit extreme, but this shows up in profiling as one of the most expensive functions throughout the whole app. This is due to a combination of things:
- path_from_shape itself is expensive, spending lots of time in CreatePathGeometry, PathGeometry::Open and GeometrySink::close
- both CreateLayer and PushLayer take up a lot of time
- dropping the PathGeometry and the Layer at the end of the function are also surprisingly expensive