summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTomas Vondra2021-03-22 23:47:06 +0000
committerTomas Vondra2021-03-22 23:47:09 +0000
commit8e4b332e88b8339408a3aa8c62bc93d96b67c808 (patch)
tree846b32ea51c4f91aa87e9d5f240e2d09cd455d3e /src/backend/access/gist/gistutil.c
parent72ccf55cb99c6450dfb77f2f8f4a28b5c049ef7a (diff)
Optimize allocations in bringetbitmap
The bringetbitmap function allocates memory for various purposes, which may be quite expensive, depending on the number of scan keys. Instead of allocating them separately, allocate one bit chunk of memory an carve it into smaller pieces as needed - all the pieces have the same lifespan, and it saves quite a bit of CPU and memory overhead. Author: Tomas Vondra <[email protected]> Reviewed-by: Alvaro Herrera <[email protected]> Reviewed-by: Mark Dilger <[email protected]> Reviewed-by: Alexander Korotkov <[email protected]> Reviewed-by: Masahiko Sawada <[email protected]> Reviewed-by: John Naylor <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions