From 887d6cfa6a924254a9a96a3cc704e6189a53b944 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 12 Apr 2010 19:42:35 +0200 Subject: Use psyco (if available) to improve performance. --- scripts/transitioncounter.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/transitioncounter.py') diff --git a/scripts/transitioncounter.py b/scripts/transitioncounter.py index cbf8068..df7e27e 100644 --- a/scripts/transitioncounter.py +++ b/scripts/transitioncounter.py @@ -70,3 +70,10 @@ def sigrokdecode_count_transitions(inbuf): return outbuf +# Use psyco (if available) as it results in huge performance improvements. +try: + import psyco + psyco.bind(sigrokdecode_count_transitions) +except ImportError: + pass + -- cgit v1.2.3-70-g09d2