OSDN Git Service

Fix performance problems in TOAST compressor. The management of
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Nov 2001 06:09:30 +0000 (06:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 Nov 2001 06:09:30 +0000 (06:09 +0000)
commit6b516f59517450f9a3590338e995de22b22a9335
tree21e10c007ab8c36c8472080f238d6b15805a6610
parentdc6efa44e263b9ead55eddefa61841d05b1a75f1
Fix performance problems in TOAST compressor.  The management of
search lists was broken in such a way that only the most recent
instance of a given hash code would ever be searched, thus possibly
missing longer matches further back.  Fixing this gave 5 to 10%
compression improvement on some text test cases.  Additional small
tweaks to improve speed of inner loops a little bit.  There is no
compatibility issue created by this change, since the compressed data
format and decompression algorithm don't change.
src/backend/utils/adt/pg_lzcompress.c