From: Andre Noll Date: Tue, 2 Apr 2013 14:46:35 +0000 (+0000) Subject: compress: Compile with -O3. X-Git-Tag: v0.4.13~29^2~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=28c03cbe5dbfae3a99869445408089d14b777577;hp=29921a5e29530801697ce4e4773738404efcbf57 compress: Compile with -O3. 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. --- diff --git a/Makefile.in b/Makefile.in index d577ce29..8649edc1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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@ $<