summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-01 14:37:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-01 14:41:15 +0900
commitd27f5fcab78cabe880e9b3f2a62ac633d97ce381 (patch)
treee603f922930b672291110cc8637183af15abda57 /configure.ac
parente077e923722be0e4a674f0ac3dc07814b3c96003 (diff)
ecore_audio - save 232k of real RAM by dlopening depednecies
so libpuls and libsndfile suck in dependencies. they suck in so much that by the time linking is done we've written to about 230kb of PRIVATE MEMORY as dirty pages in symbol tablesm global veriables etc. etc. - this is just horrible. especially if an app never makes any sound... it's just wasted memory. this stuff is invisible to normal memory debug tools. so this begins to address things. please see T4227. my numbers now put me at: 1780Kb total dirty writable mapped from library file pages. down from 2012Kb. This fixes some memory bloat reported in the above ticket, but there is more to fix for sure. @fix
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 16 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 630417a..aba9f8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3932,9 +3932,22 @@ EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [emile])
3932 3932
3933EFL_ADD_LIBS([ECORE_AUDIO], [-lm]) 3933EFL_ADD_LIBS([ECORE_AUDIO], [-lm])
3934 3934
3935EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_alsa}], [ALSA], [alsa]) 3935if test "x${want_alsa}" = "xyes" ; then
3936EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_pulseaudio}], [PULSE], [libpulse]) 3936 PKG_CHECK_MODULES([ECORE_AUDIO_ALSA], [alsa])
3937EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_sndfile}], [SNDFILE], [sndfile]) 3937 AC_DEFINE([HAVE_ALSA], [1], [Alsa support])
3938fi
3939if test "x${want_pulseaudio}" = "xyes" ; then
3940 PKG_CHECK_MODULES([ECORE_AUDIO_PULSE], [libpulse])
3941 AC_DEFINE([HAVE_PULSE], [1], [Pulseaudio support])
3942fi
3943if test "x${want_sndfile}" = "xyes" ; then
3944 PKG_CHECK_MODULES([ECORE_AUDIO_SNDFILE], [sndfile])
3945 AC_DEFINE([HAVE_SNDFILE], [1], [Sndfile support])
3946fi
3947
3948dnl EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO_ALSA], [${want_alsa}], [ALSA], [alsa])
3949dnl EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO_PULSE], [${want_pulseaudio}], [PULSE], [libpulse])
3950dnl EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO_SNDFILE], [${want_sndfile}], [SNDFILE], [sndfile])
3938 3951
3939EFL_EVAL_PKGS([ECORE_AUDIO]) 3952EFL_EVAL_PKGS([ECORE_AUDIO])
3940 3953