Pydev adventures

Posting about venturing (and creating) the Pydev 'world', with latest reports on what is happening in Pydev Extensions and in the 'Open Source' version.

For those that don't know about it, Pydev is a plugin for editing Python within Eclipse


Saturday, February 16, 2008

Pydev debugger and psyco speedups (target: 1.3.14)

The pydev debugger can now make use of psyco if it's available in the environment (it's actually highly recommended... in tests a 50% improvement in the debugger speed was observed... mainly, all the tracing goes through 2 functions, so, speeding it was pretty straightforward -- after discovering how to integrate it).

Now, this relation is kind of strange: the pydev debugger can make use of psyco, but the debugged code can't (because if it gets compiled, pydev can't trace it).

Until now, a Null() object was added as a psyco module in sys.modules so that clients didn't worry about it, but that had some nasty side effects, so, this version will also change this integration so that clients that rely on psyco don't have to change code: a stub module will replace the psyco module in sys.modules and will mimic it better -- and it'll be installed only after pydev finishes using it to get its optimizations.

Labels:

4 Comments:

Blogger Fred Chevitarese said...

Hello! how do i install psyco ?
I´ve try to install with easy_install but have no success!

Thanks!!

10:44 AM  
Blogger Fabio Zadrozny said...

You can get psyco binaries from: http://psyco.sourceforge.net/

Cheers,

Fabio

8:07 AM  
Anonymous Anonymous said...

I'd like to disable psyco. How can I do it? Thanks!

1:32 AM  
Blogger Fabio Zadrozny said...

To disable psyco, you have to remove it from your pythonpath.

5:42 AM  

Post a Comment

<< Home