Re: alsa-lib bloat.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jaroslav Kysela wrote:
> On Fri, 8 Dec 2006, James Courtier-Dutton wrote:
> 
>> Hi,
>>
>> On my desktop system, I have this:
>> /usr/lib/libasound.so.2.0.0
>> size: 2785380 bytes.
> 
> Have you tried to build minimal alsa library?
> 
>   --disable-aload         disable reading /dev/aload*
>   --disable-mixer     Disable the mixer component
>   --disable-pcm       Disable the PCM component
>   --disable-rawmidi   Disable the raw MIDI component
>   --disable-hwdep     Disable the hwdep component
>   --disable-seq       Disable the sequencer component
>   --disable-instr     Disable the instrument component
>   --disable-alisp     Disable the alisp component
> 
>   --with-pcm-plugins=<list>  Build PCM plugins
> 
> Note that only hw plugin is important for pcm if applications will do all 
> conversions itself.
> 
> Just quick test with:
> 
> ./configure --disable-aload --disable-mixer --disable-rawmidi 
> --disable-hwdep --disable-seq --disable-instr --disable-alisp 
> --with-pcm-plugins=hw
> 
> strip -g --remove-section=.comment --remove-section=.note libasound.so
> 
> -rwxr-xr-x  1 perex users 366562 2006-12-09 09:22 libasound.so.2.0.0
> 
> It does not look so bad, doesn't?
> 
> With mixer stuff:
> 
> -rwxr-xr-x   1 perex users 420024 2006-12-09 09:25 libasound.so.2.0.0
> 
>> libasound is really too big for what is does.
>> I was talking to some embedded platform developers recently, and they 
>> really don't like it at all.
> 
> The best thing is to discuss what else can be shrinked (removed from 
> build). If embedded platform developers stay quiet, we won't care.
> 
> For example, all dynamic configuration code can be removed, too.
> 
> 						Jaroslav
> 

Thanks, that is a good start. I have entered that information into the 
alsa wiki.

https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=AlsaEmbedded



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux