From 4e338c00bda2e81210bf7569f29b77999a1d2bfb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 27 Nov 2011 22:27:36 +0100 Subject: 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. --- decoders/i2c.py | 7 ------- decoders/nunchuk.py | 7 ------- decoders/transitioncounter.py | 7 ------- 3 files changed, 21 deletions(-) (limited to 'decoders') 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 -- cgit v1.2.3-70-g09d2