pub fn set_page_cache_size(size: BytePageSize, count: usize)Expand description
Sets the maximum number of cached page allocations of page size size on
the current thread.
By default fewer pages are cached for larger page sizes:
| Page size | 4K | 8K | 16K | 24K | 32K | 48K | 64K | 128K | 256K |
|---|---|---|---|---|---|---|---|---|---|
| Pages | 128 | 64 | 64 | 32 | 16 | 8 | 16 | 2 | 1 |
Buffers of BytePageSize::Unset are never cached, the call does nothing
for it.
This setting affects only the thread on which it is called.