srd: Performance improvements for various PDs.
authorUwe Hermann <uwe@hermann-uwe.de>
Wed, 11 Jul 2012 20:19:31 +0000 (22:19 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 11 Jul 2012 21:13:36 +0000 (23:13 +0200)
commit04c63eb3e2f7f033a1b534cc3dc840129842375d
treedd1559d54162002e4b9a72e5330954ba4ecc2333
parentce63fa5169ece2da8123f51d0b4c72b19524ad54
srd: Performance improvements for various PDs.

Ignore/skip identical samples in most (low-level) PDs, as we're usually
(but not necessarily always) only interested in pin changes.

This yields a significant performance improvement for the PDs.

The mechanism was already used in the 'i2s', 'jtag', and 'lpc' PDs, but not
yet in all supported low-level decoders. The following PDs now also use
this mechanism: 'dcf77', 'i2c', 'spi', 'uart', and 'usb_signalling'.

Thanks Lars-Peter Clausen <lars@metafoo.de> for bringing this to our
attention.
libsigrokdecode/decoders/dcf77/dcf77.py
libsigrokdecode/decoders/i2c/i2c.py
libsigrokdecode/decoders/spi/spi.py
libsigrokdecode/decoders/uart/uart.py
libsigrokdecode/decoders/usb_signalling/usb_signalling.py