My script is intersecting lines with polygons. It's a long process since there are more than 3000 lines and more than 500000 polygons. I executed from PyScripter:
# Importimport arcpyimport time# Set envvironmentarcpy.env.workspace = r"E:\DensityMaps\DensityMapsTest1.gdb"arcpy.env.overwriteOutput = True# Set timerfrom datetime import datetimestartTime = datetime.now()# Set local variablesinFeatures = [r"E:\DensityMaps\DensityMapsTest.gdb\Grid1km_Clip", "JanuaryLines2"]outFeatures = "JanuaryLinesIntersect"outType = "LINE"# Make linesarcpy.Intersect_analysis(inFeatures, outFeatures, "", "", outType)#Print end timeprint "Finished "+str(datetime.now() - startTime)
My question is: is there a way to make the CPU work at 100%? It's running at 25% all the time. I guess that the script would run faster if the processor was at 100%. Wrong guess?
My machine is:
أكثر...
# Importimport arcpyimport time# Set envvironmentarcpy.env.workspace = r"E:\DensityMaps\DensityMapsTest1.gdb"arcpy.env.overwriteOutput = True# Set timerfrom datetime import datetimestartTime = datetime.now()# Set local variablesinFeatures = [r"E:\DensityMaps\DensityMapsTest.gdb\Grid1km_Clip", "JanuaryLines2"]outFeatures = "JanuaryLinesIntersect"outType = "LINE"# Make linesarcpy.Intersect_analysis(inFeatures, outFeatures, "", "", outType)#Print end timeprint "Finished "+str(datetime.now() - startTime)
My question is: is there a way to make the CPU work at 100%? It's running at 25% all the time. I guess that the script would run faster if the processor was at 100%. Wrong guess?
My machine is:
- Windows Server 2012 R2 Standard
- Processor: Intel Xeon CPU E5-2630 0 @2.30 GHz 2.29 GHz
- Installed memory: 31,6 GB
- System type: 64-bit Operating System, x64-based processor

أكثر...