I hava a point featureclass , and the count of the featureclass is about 350000.
and comparing the query efficiency of arcgis engine, I found that the query efficiency of arcgis pro sdk is much slower, and I don't know why this is so.
the test data is the same featureclass and the test code is:
arcgis engine:
watch.Start();
using (var pointFeatureCursor = pointFeatureClass.Search(null, true)){
while ((var pointFeature = pointFeatureCursor.NextFeature()) != null){
var point = (IPoint) pPointFeature.ShapeCopy;
dictionary.Add(pointFeature .OID, point);
}
}
watch.Stop();
string time = watch.ElapsedMilliseconds.ToString();
//arcgis engine feature class search cost 82671ms
arcgis pro sdk:
using (var pointFeatureCursor = pointFeatureClass.Search())
{
while (pointFeatureCursor.MoveNext())
using (var pointFeature = pointFeatureCursor.Current as Feature)
{
var point = (MapPoint)pointFeature.GetShape();
dictionary.Add(pointFeature.GetObjectID(), point);
}
}
//arcgis pro sdk feature class search cost 732909ms
The efficiency of arcgis pro sdk is about 10 times slower than the efficiency of arcgis engine.why?