Re: patch: tsearch - some memory diet
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-10-06T23:33:45Z
Lists: pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes: > this simple patch reduce a persistent allocated memory for tsearch > ispell dictionaries. > on 32bit from 27MB (3399 blocks) to 13MB (1564 blocks) > on 64bit from 55MB to cca 27MB. Applied with revisions --- I got rid of the risky static state as per discussion, and extended the hackery to strings and Aff nodes as suggested by Teodor. regards, tom lane