[Vorbis-dev] Why is libvorbis so big ?

Ralph Giles giles
Fri Aug 6 09:25:51 PDT 2004


On Fri, Aug 06, 2004 at 06:17:56PM +0800, illiminable wrote:

> I've been looking through the code for vorbis_enc as that's the object file
> taking 95% of the space, and i can't figure out why it is so damn big...
> there's only a few thousand lines of code there ! I had a look through all
> the includes for that object file, and i just can't figure it out.
>
> Does it build this large on non-windows platforms ?

Yes. From x86 linux:

libvorbis.a     178K
libvorbisenc.a  1.1M
libvorbisfile.a 24K

libvorbis.so.0.3.0     170K
libvorbisenc.so.2.0.0  1.2M
libvorbisfile.so.3.1.0 34K

stripping debug info reduces libvorbisenc.so to 1006K.

My guess would be it's all the mode tables. Are you worried about
distribution size of on-disk/in ram size? They ought to compress fairly
well; if it's the second you could implement some kind of compression
scheme within the library.

-r


More information about the Vorbis-dev mailing list