I want to load data into a current map. For this purpose, I want to use a .lyrx file. Currently, I have implemented it with:
Uri uriLayerPath = new Uri(strLayerPath);
LayerFactory.Instance.CreateFeatureLayer(uriLayerPath, map, LayerPosition.AddToBottom);
It works well in principle, but the performance is very poor compared to the 'Add Data' dialog in Pro.
How can I improve the performance?