Speeding up sort performance in Postgres 15
> The change made here adds a set of new quicksort functions which suit some common datatypes. These quicksort functions have the comparison function compiled inline to remove the function call overhead.<p>Stuff like this frustrates me. This is what generics are for in most languages. Looking at the commit[0], this is a _perfect_ example of where a sprinkling of C++ features (a very basic template) would outperform the original C version. It's also super disappointing that in 2022 we're still manually marking 10- line functions used in one place and called from one site as inline.<p>[0] <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=697492434" rel="nofollow">https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit...</a>