<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python Script Tool Startup Performance in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479470#M37497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some things to try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Make sure the .tbx and script files are accessible via a fast network connection or better yet on your local machine&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Delete the geoprocessing history. Believe me, this can build up to a surprisingly large amount of file space. These .xml files are stored in: C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcToolbox\History&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;This may be the most effective but &lt;SPAN style="text-decoration:underline;"&gt;be aware all your ArcMap/ArcCatalog settings (toolbars, paths, settings, etc) will go away&lt;/SPAN&gt;... Try renaming (or deleting) your normal.mxt and normal.gxt files... These are the template files that control the customizations to ArcMap/Catalog. I make a habit of deleting these every so often when start up performance (ArcMap, ArcCatalog, import arcpy, etc.)goes down. Try just renaming these (they will get auto-recreated) and you will have your back ups in case you need to go back to the originals. These files are located at: C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcMap\Templates and C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 16:11:24 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2014-05-06T16:11:24Z</dc:date>
    <item>
      <title>Python Script Tool Startup Performance</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479469#M37496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a series of Python script tools that run in ArcMap 10.2 and noticed that there was significant lag before any code I wrote ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a test, I created a Python script file with no executable code in it.&amp;nbsp; I didn't even import arcpy.&amp;nbsp; Under these conditions, the tool still takes around 25 seconds to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried enabling/disabling background processing and logging, and neither of these had a noticeable effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions for how to improve script tool startup speed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 12:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479469#M37496</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2014-05-06T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Tool Startup Performance</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479470#M37497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some things to try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Make sure the .tbx and script files are accessible via a fast network connection or better yet on your local machine&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Delete the geoprocessing history. Believe me, this can build up to a surprisingly large amount of file space. These .xml files are stored in: C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcToolbox\History&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;This may be the most effective but &lt;SPAN style="text-decoration:underline;"&gt;be aware all your ArcMap/ArcCatalog settings (toolbars, paths, settings, etc) will go away&lt;/SPAN&gt;... Try renaming (or deleting) your normal.mxt and normal.gxt files... These are the template files that control the customizations to ArcMap/Catalog. I make a habit of deleting these every so often when start up performance (ArcMap, ArcCatalog, import arcpy, etc.)goes down. Try just renaming these (they will get auto-recreated) and you will have your back ups in case you need to go back to the originals. These files are located at: C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcMap\Templates and C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479470#M37497</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2014-05-06T16:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Tool Startup Performance</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479471#M37498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the suggestions!&amp;nbsp; Unfortunately, they did not have an effect on performance in this case, but they all look like great suggestions for managing performance in general.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479471#M37498</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2014-05-06T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Tool Startup Performance</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479472#M37499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have the checkbox set from the script property second tab: "Run Python script in process" - this allows your script to spawn off ArcMap's existing python process - saving startup time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479472#M37499</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-05-06T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Tool Startup Performance</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479473#M37500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis, thank you for the idea!&amp;nbsp; My scripts were all running in-process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surprisingly, in my empty script tool case, the tool finished in around 12 seconds when I ran it &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;out&lt;/SPAN&gt;&lt;SPAN&gt;-of-process.&amp;nbsp; When I tried this with my real script, I encountered an error though.&amp;nbsp; From the page below, it looks like Esri only recommends running scripts out-of-process in special cases:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000r000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000r000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 17:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-startup-performance/m-p/479473#M37500</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2014-05-06T17:09:49Z</dc:date>
    </item>
  </channel>
</rss>

