From: | Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use memcpy instead of a byte loop in pglz_decompress |
Date: | 2019-11-28 22:42:28 |
Message-ID: | E1iaSUW-0000tQ-Cl@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Use memcpy instead of a byte loop in pglz_decompress
The byte loop used in pglz_decompress() because of possible overlap may
be quite inefficient, so this commit replaces it with memcpy. The gains
do depend on the data (compressibility) and hardware, but seem to be
quite significant.
Author: Andrey Borodin
Reviewed-by: Michael Paquier, Konstantin Knizhnik, Tels
Discussion: https://postgr.es/m/469C9ED9-348C-4FE7-A7A7-B0FA671BEE4C@yandex-team.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c60e520f6e0e8db9618cad042df071a6752f3c06
Modified Files
--------------
src/common/pg_lzcompress.c | 52 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2019-11-29 02:12:23 | Re: pgsql: Add tests for '-f' option in dropdb utility. |
Previous Message | Tomas Vondra | 2019-11-28 22:29:22 | pgsql: Remove unnecessary clauses_attnums variable |