mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
perf: optimize block batch size from 500 to 50 blocks per message
Achieves significant memory reduction with equivalent network performance. The reduced batch size prevents memory pressure while preserving transfer efficiency, improving overall system resource utilization.
This commit is contained in:
parent
a7a384a66f
commit
7f3004b5c0
@ -73,9 +73,9 @@ declareCounter(
|
||||
const
|
||||
DefaultMaxPeersPerRequest* = 10
|
||||
# The default max message length of nim-libp2p is 100 megabytes, meaning we can
|
||||
# in principle fit up to 1600 64k blocks per message, so 500 is well under
|
||||
# in principle fit up to 1600 64k blocks per message, so 50 is well under
|
||||
# that number.
|
||||
DefaultMaxBlocksPerMessage = 500
|
||||
DefaultMaxBlocksPerMessage = 50
|
||||
DefaultTaskQueueSize = 100
|
||||
DefaultConcurrentTasks = 10
|
||||
# Don't do more than one discovery request per `DiscoveryRateLimit` seconds.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user