]> sigrok.org Git - libsigrokdecode.git/commit
timing: only queue when averaging, rephrase put calls
authorGerhard Sittig <redacted>
Fri, 3 Jul 2020 10:33:28 +0000 (12:33 +0200)
committerGerhard Sittig <redacted>
Tue, 7 Jul 2020 20:50:46 +0000 (22:50 +0200)
commit74c9c926a8936b6e7b781639908d1016e2088307
treed07ce3744ddf17443691cf8f6dfac1793c54df91
parent7e09e39c756c17ff783405ac13e0d3fa211fe8e7
timing: only queue when averaging, rephrase put calls

Reduce the amount of work which the timing decoder needs to do. Only
keep the deque() filled when averaging is active. Rephrase .put() calls
to reduce text line lengths (and for consistency with a pending change).
Move another options lookup for deltas out of the main loop.
decoders/timing/pd.py