From d2a60911496d45d66d22d60d74626d10368bef66 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 20 Nov 2025 12:07:14 +1030 Subject: [PATCH] common: increase jsonrpc_io buffer size temporarily to aggrevate perf issues. A client can do this by sending a large request, so this allows us to see what happens if they do that, even though 1MB (2MB buffer) is more than we need. This drives our performance through the floor: see next patch which gets us back on track. tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3): Time (from start to end of l2 node): 271 seconds **WAS 135** Worst latency: 105 seconds **WAS 12.1** Signed-off-by: Rusty Russell --- common/jsonrpc_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/jsonrpc_io.c b/common/jsonrpc_io.c index ab7255a9b..e302434e9 100644 --- a/common/jsonrpc_io.c +++ b/common/jsonrpc_io.c @@ -8,7 +8,7 @@ #include #include -#define READ_CHUNKSIZE 2048 +#define READ_CHUNKSIZE (1024*1024) struct jsonrpc_io { MEMBUF(char) membuf;