Re: [Snowball-discuss] Download tarball inconsistencies

From: Olly Betts (olly@survex.com)
Date: Mon Sep 11 2006 - 03:20:57 BST


On Sun, Sep 10, 2006 at 11:30:37PM +0100, richard@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



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:48 BST