Forum Discussion
is pycontrol slower than the perl API?
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
- snovakov_86258NimbostratusIf I'm not mistaken, I believe that iControl is written in Perl. That's why I stick with Perl. No need for using annoying WSDL files, either.
- yozik_100692Nimbostratusthanks for the quick answer. It's unfortunate that the slowness is so noticable. Trust me I'd love to stick with perl, but I need to re-write the code so that everyone can support it.
Guess I need to find a way to make things appear not so slow.
--
Jeremy
- snovakov_86258NimbostratusI hear ya, Jeremy. It's funny, but to me object-oriented Perl (a-la Damian Conway) is no more difficult to understand and write than Python. And the environment is noticeably faster in Perl, too, as you've discovered. Too bad everyone can't just get along...
- mhite_60883CirrocumulusHave you tried referencing the WSDL locally rather than downloading it? That might give you a performance bump. Also, you can probably eliminate a lot of back-and-forth if you use V11 transactions (where appropriate).
- yozik_100692Nimbostratusmhite, no I haven't
do you have some reference code on how to do that ?
I'm currently just doing the wsdsl = ['LocalLB.VirtualServer'] as shown in the examples
--
Jeremy
- mhite_60883Cirrocumulusclass BIGIP(__builtin__.object)
- yozik_100692Nimbostratusthanks
I'll spend some time on this and see if there are any improvements
--
Jeremy
- Posted By snovakov on 01/31/2012 09:44 AM
- yozik_100692NimbostratusJoe,
thanks for the information. It helps my understanding of how things run under the hood a little bit better. I'm partial to perl as well but got tired of using CGI::Ajax and wanted to move over to web2py. Any how, I'm working on configuring the BIGIP object to use a local copy of the wsdl to see if that helps with the delay.
thanks
--
Jeremy
- That's the first I've heard of using CGI::Ajax for iControl. I've only used SOAP::Lite in the past. I guess from your comment, it's probably not worth exploring B-)...
Recent Discussions
Related Content
* 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