Hi, I have developed a Python script that iterates through a list of feature classes, in order to apply the same series of geoprocessing tools upon each feature class. In the script, I implemented it like this:
fclist = ("fc1","fc2","fc3", ...")
for i in fclist:
arcpy.management.AddField(i, ...)
arcpy.management.CalculateField(i, ...)
...
It works fine, but I am wondering whether it is possible to speed up processing time by telling Pythin to use not just one but multiple CPUs (for example, use 50% of the available CPUs), i.e. how can I tell Python to perform the "for" loop in parallel?
As the result of the "for" loop for one feature class is not input to or dependend on the results of the other feature classes, I think parallel processing should be possible.
All feature classes are located in the same feature datasets, so I am furthermore wondering whether I am running into "system lock" problems if I am going to parallise this processing?
I appreciate of someone could share his experiences with multi-core / multip-CPU processing and could provide some code snippets.