aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-01-16 17:47:59 +0100
committerAndres Freund <andres@anarazel.de>2015-01-16 17:47:59 +0100
commitf5ae3ba4828ece02bae2d16b4cbce847fbcea850 (patch)
treea90610a281e4d95a84bce218836bbca68087ed85 /src/backend/commands
parentaa1d2fc5e91e396bec5bf8a8d10b6cc4af0b0fff (diff)
downloadpostgresql-f5ae3ba4828ece02bae2d16b4cbce847fbcea850.tar.gz
postgresql-f5ae3ba4828ece02bae2d16b4cbce847fbcea850.zip
Make tbm_add_tuples more efficient by caching the last acccessed page.
When adding a large number of tuples to a TID bitmap using tbm_add_tuples() sometimes a lot of time was spent looking up a page's entry in the bitmap's internal hashtable. Improve efficiency by caching the last accessed page, while iterating over the passed in tuples, hoping consecutive tuples will often be on the same page. In many cases that's a good bet, and in the rest the added overhead isn't big. Discussion: 54479A85.8060309@sigaev.ru Author: Teodor Sigaev Reviewed-By: David Rowley
Diffstat (limited to 'src/backend/commands')
0 files changed, 0 insertions, 0 deletions