From dcdfd1a8137c72f34acaa5b1a64bafaf2ac5e649 Mon Sep 17 00:00:00 2001 From: full-bars <45684698+full-bars@users.noreply.github.com> Date: Mon, 4 May 2026 14:57:34 -0700 Subject: [PATCH] perf: increase InitialContractTransferByteCount to 256KiB Increases the initial contract size to reduce negotiation overhead. At the current 16KiB limit, the 80% ContractFillFraction threshold (~13KB) is often too small to accommodate a final ~1.4KB packet, leading to frequent contract exhaustion logs and performance bottlenecks. --- transfer_contract_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transfer_contract_manager.go b/transfer_contract_manager.go index b825350..c403c77 100644 --- a/transfer_contract_manager.go +++ b/transfer_contract_manager.go @@ -195,7 +195,7 @@ func DefaultContractManagerSettingsWithBufferSize(bufferSize int) *ContractManag } return &ContractManagerSettings{ SequenceBufferSize: bufferSize, - InitialContractTransferByteCount: kib(16), + InitialContractTransferByteCount: kib(256), StandardContractTransferByteCount: mib(128), ContractTransferByteSeqScale: 4,