I'm using PyScripter to do some python geocoding automation and I'm coming across the situation where I am waiting several tens of seconds for a large module to be imported.
This is very inconvenient since it makes editing and debugging much slower than could be.
I'm hoping there would be a workaround where this large module could be saved in memory so that after the first run, consecutive re-runs wouldn't need to reload the module.
Does such a workaround exist?
I found this Importing arcpy on application launch to speed up subsequent arcpy methods. However it doesn't seem to directly address what I'm experiencing, or perhaps I do not understand the answer.
If someone could clarify the answer or suggest a workaround that would be great!
The code in question is this:
import arcpy
#use arcpy stuff
import time;t = time.time();import arcpy;print(time.time()-t);t = time.time();import arcpy;print(time.time()-t)
should let you know what is happening. Hopefully the first print statement isn't > 10...