From c8140500b3a3440de6abd2bb4ec3684682006301 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 eefc02f1..4fabc4ea 100644 --- a/transfer_contract_manager.go +++ b/transfer_contract_manager.go @@ -85,7 +85,7 @@ func DefaultContractManagerSettings() *ContractManagerSettings { panic(err) } return &ContractManagerSettings{ - InitialContractTransferByteCount: kib(16), + InitialContractTransferByteCount: kib(256), StandardContractTransferByteCount: mib(128), ContractTransferByteSeqScale: 4,