Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_PAGES_AFTER: Int = 3

Pages prefetched below the visible page when Auto is in effect (small docs).

Link copied to clipboard
const val DEFAULT_PAGES_BEFORE: Int = 3

Pages prefetched above the visible page when Auto is in effect (small docs).

Link copied to clipboard

Pages prefetched below the visible page when Auto is in effect (large docs).

Link copied to clipboard

Pages prefetched above the visible page when Auto is in effect (large docs).

Link copied to clipboard
const val LARGE_DOCUMENT_THRESHOLD: Int = 200

Page count above which Auto switches from the symmetric small-document window to the tighter forward-biased large-document window. ~200 pages is roughly where a wide warm ring stops paying for itself: at 2× density an A4 page is a few MB, so a couple hundred warm pages would already blow past the memory budget and degrade to LRU thrash.