This commit is contained in:
Jared Wasinger 2025-04-22 16:25:43 +08:00
parent 24bd5c95e5
commit 1790ad7743

View file

@ -41,7 +41,7 @@ const (
)
var (
blockCacheMaxItems = 8192 * 4 // Maximum number of blocks to cache before throttling the download
blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = 2048 // Initial number of blocks to start fetching, before we know the sizes of the blocks
blockCacheMemory = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching
blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones