Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

localbuf.c

  • Tom Lane's avatar
    72619f81
    Modify local buffer management to request memory for local buffers in blocks · 72619f81
    Tom Lane authored
    of increasing size, instead of one at a time.  This reduces the memory
    management overhead when num_temp_buffers is large: in the previous coding
    we would actually waste 50% of the space used for temp buffers, because aset.c
    would round the individual requests up to 16K.  Problem noted while studying
    a performance issue reported by Steven Flatt.
    
    Back-patch as far as 8.1 --- older versions used few enough local buffers
    that the issue isn't significant for them.
    72619f81
    History
    Modify local buffer management to request memory for local buffers in blocks
    Tom Lane authored
    of increasing size, instead of one at a time.  This reduces the memory
    management overhead when num_temp_buffers is large: in the previous coding
    we would actually waste 50% of the space used for temp buffers, because aset.c
    would round the individual requests up to 16K.  Problem noted while studying
    a performance issue reported by Steven Flatt.
    
    Back-patch as far as 8.1 --- older versions used few enough local buffers
    that the issue isn't significant for them.