I recently upgraded ArcGIS Pro from version 2.0 -> version 2.3.3, running on Windows 7. I have a python script that runs a Cost Distance analysis for each group of features in a large feature class. With version 2.0, each Cost Distance run would consistently take about 20s . After upgrade to version 2.3.3, the same exact process (same script/data) would take 3 to 4 times longer to run (over 70s each). I've noticed the slowness in both the python script and running the geoprocessing tool in ArcGIS Pro.
I originally thought the slowdown could have been related to Parallel Processing functionality, so I also tested both with no parallel processing:
arcpy.env.parallelProcessingFactor = "0"
and with 100%:
arcpy.env.parallelProcessingFactor = "100%"
along with the default value. This didn't seem to be related to the slowdown, since default and "100%" options were generally even slower, and in some cases the "100%" option would cause the script to hang indefinitely.
Anyone noticed the same issue, or have ideas what might be happening here? I'm wondering if a change to the Cost Distance function between versions can explain this(?)