I have performed performance profiling:
As you can see, most of the time gets spend parsing the geometry. The current approach is to Export the geometry to WKB and then read that using WKBReader.
Changing the function signature to use a reader instead a factory to create a reader brings in improvement around ~3secs (I have done that).
If there is a way to create an
we wouldn't neet the call to Flatten2D, WkbSize, ExportToWkb which would bring another improvement of ~6 seconds.