Cable, Cisco 3000, Python -long (was Re: [SPAM] Re: SCP speed question)
Michael Hipp
Michael
Sat Jan 13 08:59:04 PST 2007
Matthew Carpenter wrote:
> Very nice code indeed. I am a recent convert to Python, by way of Perl, Java,
> and C. Yes, Python does a load of things right. And if you need a boost,
> look into PSYCHO. It's basically like a JITC.
>
> I recently wrote a disassembler which does a *ton* of text manipulation and
> markup. To complete the process on /bin/bash (my performance measurement)
> took over an hour to begin with. I was able to improve performance
> significantly through cached lookups of memory addresses and optimization of
> code, but even through optimization I was only able to drop it to about 2
> minutes... (only)
> Psycho drops this to under a minute (roughly 40 secs).
>
>
> Added the following lines to the beginning of the initial "executeable"
> script:
> ############ psyco optimization. If you do not use psyco, comment this out
> import psyco
> psyco.log("/var/tmp/disass-ng.psycho.log")
> psyco.full()
> ############
Thanks. I've never bumped up against any performance worries with Python.
Probably I'm just not doing anything that demanding. But psycho looks very
interesting.
Michael
More information about the Linux-users
mailing list