]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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)
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%.


No differences found