git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f3ff7bf) | patch
Use bump memory context for tuplesorts
Sun, 7 Apr 2024 12:32:26 +0000 (00:32 +1200)
Sun, 7 Apr 2024 12:32:26 +0000 (00:32 +1200)
commit 6ed83d5fa55cf6e6c9d1be34ec10730c48eba763
Use bump memory context for tuplesorts

29f6a959c added a bump allocator type for efficient compact allocations.
Here we make use of this for non-bounded tuplesorts to store tuples.
This is very space efficient when storing narrow tuples due to bump.c
not having chunk headers. This means we can fit more tuples in work_mem
before spilling to disk, or perform an in-memory sort touching fewer
cacheline.

Author: David Rowley
Reviewed-by: Nathan Bossart
Reviewed-by: Matthias van de Meent
Reviewed-by: Tomas Vondra
Reviewed-by: John Naylor
Discussion: https://postgr.es/m/CAApHDvqGSpCU95TmM=Bp=6xjL_nLys4zdZOpfNyWBk97Xrdj2w@mail.gmail.com
src/backend/utils/sort/tuplesort.c diff | blob | blame | history
src/backend/utils/sort/tuplesortvariants.c diff | blob | blame | history
src/include/utils/tuplesort.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /