postgres-github.git / summary / log / commit / refs
commit 6f5ad00ab763f9e029ec591f7f650bd09c1e933f
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Apr 07 10:26:39 2026 +0000
Optimize sort and deduplication in ginExtractEntries()
Remove NULLs from the array first, and use qsort to deduplicate only
the non-NULL items. This simplifies the comparison function. Also
replace qsort_arg() with a templated version so that the comparison
function can be inlined. These changes make ginExtractEntries() a
little faster especially for simple datatypes like integers.
Author: David Geier <geidav.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/6d16b6bd-a1ff-4469-aefb-a1c8274e561a@iki.fi
[parent: b6ccd30d8ff6]