]> sigrok.org Git - libsigrokdecode.git/commit
srd: Performance improvements for various PDs.
authorUwe Hermann <redacted>
Wed, 11 Jul 2012 20:19:31 +0000 (22:19 +0200)
committerUwe Hermann <redacted>
Wed, 11 Jul 2012 21:13:36 +0000 (23:13 +0200)
commit2fcd7c22852436c3226de9007e88cb305cce1b00
treeb1681936eec81e3bd91eb43fb395fc2bcf908aba
parentb5d3ea69628d49ab5b26e064559f7a237b46c086
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 <redacted> for bringing this to our
attention.
decoders/dcf77/dcf77.py
decoders/i2c/i2c.py
decoders/spi/spi.py
decoders/uart/uart.py
decoders/usb_signalling/usb_signalling.py