Package: ajaxterm
Version: 0.10-2
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ajaxterm should use psyco if it is available (which is on x86).  On my system,
this gives a significant performance improvement, dropping the CPU usage from
about 10% to about 1%.  Here's a patch to do that:


diff ./ajaxterm.py /usr/share/ajaxterm/ajaxterm.py
4a5,10
> try:
>       import psyco
>       psyco.profile()
> except ImportError:
>       pass
> 
diff ./qweb.py /usr/share/ajaxterm/qweb.py
118a119,124
> try:
>       import psyco
>       psyco.profile()
> except ImportError:
>       pass
> 


If psyco is not installed, it does nothing.  If it is installed, it
transparently compiles python code into faster machine code on the fly.

It would also be a good idea to add a "Recommends:" entry for python-psyco

thanks,
Brian Minton

- -- System Information:
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.5 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages ajaxterm depends on:
ii  adduser                       3.110      add and remove users and groups
ii  python                        2.5.2-2    An interactive high-level object-o
ii  python-support                0.8.6      automated rebuilding support for P

Versions of packages ajaxterm recommends:
ii  apache2                       2.2.9-9    Apache HTTP Server metapackage
ii  apache2-mpm-prefork [httpd]   2.2.9-9    Apache HTTP Server - traditional n
ii  openssh-server                1:5.1p1-2  secure shell server, an rshd repla

ajaxterm suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkJzZMACgkQcieIIFcDdHKgrQCfaWSKsDvOvvwsqxDshy6UenJX
3+wAn3s869SPuhji3i3GwYa0afkVvKpN
=rR7w
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to