]> granicus.if.org Git - postgresql/commit
Use a pairing heap for the priority queue in kNN-GiST searches.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 22 Dec 2014 10:05:57 +0000 (12:05 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 22 Dec 2014 10:05:57 +0000 (12:05 +0200)
commite7032610f76e6c8345496ae7bbdf49d3c40df30f
tree8000940e75f51aed385fecdc26ebdd85a05016b9
parent699300a146c04e207a8fdec407538cdf5368fde5
Use a pairing heap for the priority queue in kNN-GiST searches.

This performs slightly better, uses less memory, and needs slightly less
code in GiST, than the Red-Black tree previously used.

Reviewed by Peter Geoghegan
src/backend/access/gist/gistget.c
src/backend/access/gist/gistscan.c
src/backend/lib/Makefile
src/backend/lib/README [new file with mode: 0644]
src/backend/lib/pairingheap.c [new file with mode: 0644]
src/include/access/gist_private.h
src/include/lib/pairingheap.h [new file with mode: 0644]