Re: Improve compression speeds in pg_lzcompress.c - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Improve compression speeds in pg_lzcompress.c
Date
Msg-id CA+TgmobGAf30i-FJkQfjsjQ6OYdn7b_eg+6Wk8R91sqMjispkA@mail.gmail.com
Whole thread Raw
In response to Re: Improve compression speeds in pg_lzcompress.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Improve compression speeds in pg_lzcompress.c
List pgsql-hackers
On Mon, Jan 7, 2013 at 11:16 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Why would that be a good tradeoff to make?  Larger stored values require
> more I/O, which is likely to swamp any CPU savings in the compression
> step.  Not to mention that a value once written may be read many times,
> so the extra I/O cost could be multiplied many times over later on.

I agree with this analysis, but I note that the test results show it
actually improving things along both parameters.

I'm not sure how general that result is.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ALTER command reworks
Next
From: Kohei KaiGai
Date:
Subject: Re: ALTER command reworks