Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2015-01-16 16:47:59 +0000
committerAndres Freund2015-01-16 16:47:59 +0000
commitf5ae3ba4828ece02bae2d16b4cbce847fbcea850 (patch)
treea90610a281e4d95a84bce218836bbca68087ed85 /src/backend/nodes/print.c
parentaa1d2fc5e91e396bec5bf8a8d10b6cc4af0b0fff (diff)
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/nodes/print.c')
0 files changed, 0 insertions, 0 deletions