From: Uwe Hermann Date: Sun, 27 Nov 2011 21:27:36 +0000 (+0100) Subject: decoders: Drop psyco stuff, seems obsolete. X-Git-Tag: libsigrokdecode-0.1.0~258 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=4e338c00bda2e81210bf7569f29b77999a1d2bfb;hp=e100d51ec0909db8f93c837ea1fd92a08461b781 decoders: Drop psyco stuff, seems obsolete. The psyco module seems to be mostly unmaintained at this point, it does not support Python 2.7 or higher at all, it only supports x86, it doesn't support 64 bit systems at all, etc. etc. We should try to find other ways to optimize our decoders for speed. --- diff --git a/decoders/i2c.py b/decoders/i2c.py index 4b13825..7c3b087 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -345,12 +345,5 @@ class Decoder(): if out != []: sigrok.put(out) -# Use psyco (if available) as it results in huge performance improvements. -try: - import psyco - psyco.bind(decode) -except ImportError: - pass - import sigrok diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py index 31de4ff..068c170 100644 --- a/decoders/nunchuk.py +++ b/decoders/nunchuk.py @@ -165,10 +165,3 @@ register = { # 'report': report, } -# Use psyco (if available) as it results in huge performance improvements. -try: - import psyco - psyco.bind(decode) -except ImportError: - pass - diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py index d9956c7..2ad3f52 100644 --- a/decoders/transitioncounter.py +++ b/decoders/transitioncounter.py @@ -107,12 +107,5 @@ class Decoder(): outdata += [[self.transitions[i], self.rising[i], self.falling[i]]] sigrok.put(outdata) -# Use psyco (if available) as it results in huge performance improvements. -try: - import psyco - psyco.bind(decode) -except ImportError: - pass - import sigrok