aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-11-28 23:29:30 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2019-11-28 23:29:30 +0100
commitc60e520f6e0e8db9618cad042df071a6752f3c06 (patch)
tree0e7b45f1b55e302a6b0da1b2ddeed567c3720ecd /contrib/postgres_fdw/postgres_fdw.c
parent6d61c3f1cb7134c3ad80d29e216563571cc43de2 (diff)
downloadpostgresql-c60e520f6e0e8db9618cad042df071a6752f3c06.tar.gz
postgresql-c60e520f6e0e8db9618cad042df071a6752f3c06.zip
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions