From 28c03cbe5dbfae3a99869445408089d14b777577 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 2 Apr 2013 14:46:35 +0000 Subject: [PATCH] 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. --- Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) 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@ $< -- 2.39.2