[Snowball-discuss] Download tarball inconsistencies

Olly Betts olly at survex.com
Mon Sep 11 03:20:57 BST 2006


On Sun, Sep 10, 2006 at 11:30:37PM +0100, richard at lemurconsulting.com wrote:
> I'll look at your other reports tomorrow - thanks for them, too. ;-)

OK, here's another patch - this marks all the data in the generated C
files as "const" so that the compiler can put in it the rodata section.
This means that if the generated code is put in a shared library (like
it typically will be for Xapian) then one copy of this data can be
shared between all the processes using the library rather than a copy
being required for each process.  This change requires various function
prototypes for the helper functions to have const added, which might
have the additional benefit of allowing the compiler to generate
better code.

http://www.oligarchy.co.uk/xapian/patches/snowball-const-data.patch

Cheers,
    Olly



More information about the Snowball-discuss mailing list