Notice! There may be a slight change coming with pycontrol v2, as Suds has just improved its caching support of XML objects and no longer relies on transport-level caching of objects. This should do two things:
1)Work around cache errors/bugs in the current implementation.
2)Greatly speed up the loading of cached XML objects. They’re now converted to pickle files, which is roughly a 2x parsing speed increase.
I’ll need to run through my tests to check for any obvious issues, as well as make a few changes to the module to accommodate the new cache settings if they work well. I’ll also add an optional constructor argument that will force a cache bypass if that is what you want to do.
Please let me know if you have any preferences on the default behavior - should I cache or not cache parsed WSDL objects? I don’t see a downside, and I’m currently leaning toward setting a default of cache=True so we can enjoy the performance boost of pre-parsed and pickled WSDLs. If there is an obvious reason not to do this (i.e. to default to cache=False), please let me know.
I’ll report back with any updates, as well as a release of pycontrol v2 with this enhancement.
-Matt