Forum Discussion
yozik_100692
Jan 31, 2012Nimbostratus
is pycontrol slower than the perl API?
I'm in the process of porting over some perl code to python and have noticed that getting data back is much slower with pycontrol. Has anyone else noticed this?
the most basic example I have that demostrates this, well at lest for me, is getting a list of Virtual Servers. In perl getting the interface to the F5 and using get_list is very quick, undes 2 secs, while in python it takes 10+ secs.
any help or suggestions is welcomed.
--
Jeremy
- yozik_100692Nimbostratusit's one long perl script that uses CGI and ajax to build an interface for controlling irules and virtual servers. We needed something really dumbed down so that changing out irules for a given virtual server would be error proof.
--
Jeremy
- Gotcha. If you do ever go back to Perl, let me know and I can help you out with any iControl code you need using SOAP::Lite. I've already got a few goodies in Perl dealing with iRule backup and archiving.
- yozik_100692Nimbostratusso to answer my question after some guidence, many thanks BTW, the delay in the python interface is really due to the fact that the wsdl has to be fecthed
- L4L7_53191NimbostratusYozik, you've found the answer. That said, it's worth noting that *load* times (as opposed to call response times) will probably be faster in Perl (or Java) as well, because pyControl - really, Suds, the underlying client - parses the WSDL every time it is loaded. No, it's not ideal, but it does have its advantages...
- snovakov_86258NimbostratusThanks for the education, Joe!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects