Specialize checkpointer sort functions.
authorThomas Munro <tmunro@postgresql.org>
Fri, 12 Mar 2021 10:56:02 +0000 (23:56 +1300)
committerThomas Munro <tmunro@postgresql.org>
Fri, 12 Mar 2021 10:56:02 +0000 (23:56 +1300)
commit1b88b8908e751271933c076234fa085cda251421
tree1c915dc03ca34d4e91c3bc88a1161eb5e820b33e
parent519e4c9ee21a656879123f4843f1d8d60cb71536
Specialize checkpointer sort functions.

When sorting a potentially large number of dirty buffers, the
checkpointer can benefit from a faster sort routine.  One reported
improvement on a large buffer pool system was 1.4s -> 0.6s.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGJ2-eaDqAum5bxhpMNhvuJmRDZxB_Tow0n-gse%2BHG0Yig%40mail.gmail.com
src/backend/storage/buffer/bufmgr.c