]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
compress: Compile with -O3.
authorAndre Noll <maan@systemlinux.org>
Tue, 2 Apr 2013 14:46:35 +0000 (14:46 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 21 Apr 2013 13:37:13 +0000 (15:37 +0200)
By default all objects are compiled with -Os. For the compress filter,
which has to deal with large amounts of uncompressed audio data,
gcc emits rather inefficient code. Switching to -O3 resulted in a 10%
performance improvement on my Lenovo laptop.

Makefile.in

index d577ce295c540ecc91ce8134a33a4d62db070168..8649edc1b70bcd5d0a08ceaae6aa883409e2c00d 100644 (file)
@@ -180,6 +180,10 @@ $(object_dir)/mp3dec_filter.o: mp3dec_filter.c | $(object_dir)
        @[ -z "$(Q)" ] || echo 'CC $<'
        $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @mad_cppflags@ $<
 
+$(object_dir)/compress_filter.o: compress_filter.c | $(object_dir)
+       @[ -z "$(Q)" ] || echo 'CC $<'
+       $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) -O3 $<
+
 $(object_dir)/aacdec_filter.o: aacdec_filter.c | $(object_dir)
        @[ -z "$(Q)" ] || echo 'CC $<'
        $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @faad_cppflags@ $<