]> git.tuebingen.mpg.de Git - paraslash.git/commit
compress: Avoid PARA_ABS and PARA_MAX in inner loop.
authorAndre Noll <maan@systemlinux.org>
Tue, 2 Apr 2013 15:02:09 +0000 (15:02 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Apr 2013 13:39:32 +0000 (15:39 +0200)
commit15a54f2ef3d6c33b15a1180332e63604e7cedc60
treed705acfdaf9d77b69876d4e920ca7e349f35c828
parent28c03cbe5dbfae3a99869445408089d14b777577
compress: Avoid PARA_ABS and PARA_MAX in inner loop.

These macros are type-safe and evaluate their arguments only once.
However, they are also slow. For the compress filter we are dealing
with ints and unsigned ints only, so the additional checks performed
by the macros only slow things down. Getting rid of the macros reduces
the running time of

para_filter -f compress < foo.wav > /dev/null

by approximately 8%.
compress_filter.c