What psyco is goot at [Was: Rookie Speaks]

Peter Hansen peter at engcorp.com
Fri Jan 9 15:09:17 CET 2004


Samuel Walters wrote:
> 
> I've heard of a tool, I believe it's called HotSpot, that will help you
> figure out which lines of code, not functions, are the most expensive for
> you.  You could then see if wrapping those lines in a function and binding
> it with psyco would give you a gain in performance.  You might look into
> it.  I haven't researched it, know nothing about it, and it's pretty low
> on my to-do list ATM, but it might help you with your needs.

Actually, "Hotshot" is the new profiler that was added in 2.2::

  HotShot, a new profiler implemented using a C-based callback, has
  been added.  This substantially reduces the overhead of profiling,
  but it is still quite preliminary.  Support modules and
  documentation will be added in upcoming releases (before 2.2 final).

See also http://www.python.org/doc/current/lib/module-hotshot.html .

-Peter



More information about the Python-list mailing list