- Notifications
You must be signed in to change notification settings - Fork5
Commit0abe743
committed
This patch extracts page buffer pooling and the simple
least-recently-used strategy from clog.c into slru.c. It doesn'tchange any visible behaviour and passes all regression tests plus aTruncateCLOG test done manually.Apart from refactoring I made a little change to SlruRecentlyUsed,formerly ClogRecentlyUsed: It now skips incrementing lru_counts, ifslotno is already the LRU slot, thus saving a few CPU cycles. To makethis work, lru_counts are initialised to 1 in SimpleLruInit.SimpleLru will be used by pg_subtrans (part of the nested transactionsproject), so the main purpose of this patch is to avoid future codeduplication.Manfred Koizar1 parent240dc5c commit0abe743
6 files changed
+990
-799
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
0 commit comments
Comments
(0)