Re: libpq compression (part 2)

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Daniil Zakhlystov <usernamedt(at)yandex-team(dot)ru>
Subject: Re: libpq compression (part 2)
Date: 2022-01-03 11:16:55
Message-ID: 540991641208615@iva8-dc7983bf477b.qloud-c.yandex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> Maybe you should reset the streams between each compression message (even if
> it's using the same compression algorithm). This might allow better
> compression.

AFAIK on the contrary - longer data sequence usually compresses better. The codec can use knowledge about prior data to better compress current bytes.

Best regards, Andrey Borodin.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Suraj Kharage 2022-01-03 13:05:55 Remove extra spaces
Previous Message Andrey Borodin 2022-01-03 11:13:10 Re: Index-only scans vs. partially-retrievable indexes