[Xapian-discuss] libraries too large ?

Adi Oanca adioanca at gmail.com
Mon Jan 7 02:05:09 GMT 2008


Hi James,

   I can't believe I haven't noticed that. Thanks for opening my eyes.
Next time, I promise I will have them wide open, before asking the
list. :)

Thanks!


Adi.

On Jan 6, 2008 9:58 PM, James Aylett <james-xapian at tartarus.org> wrote:
> On Sun, Jan 06, 2008 at 09:36:25PM +0200, Adi Oanca wrote:
>
> > Can the library sizes be reduced a bit more?
>
> The libraries are built with debugging symbols, to make development
> easier. You can strip these out on Unixoids by running:
>
> $ strip <library-file>
>
> With this, on Debian 4.0 I go from 36.0M to 2.1M for static, 13.7M to
> 1.6M for dynamic. On Windows there may be a tool, or you could disable
> debugging symbols during compilation in some way.
>
> > I see it's possible because the cygwin package from the Xapian website
> > offers a .dll with a size of 2.714.156 bytes. Same with the Linux
> > version from Ubuntu repository, which has 1.567.308 bytes.
>
> Most distributions will ship stripped versions of the
> binaries. On Debian/Ubuntu the convetion is to offer -dbg (debug)
> versions of the packages with the debugging symbols left in.
>
> J
>
> --
> /--------------------------------------------------------------------------\
>   James Aylett                                                  xapian.org
>   james at tartarus.org                               uncertaintydivision.org
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>



More information about the Xapian-discuss mailing list