From b47462a23c3e3e4940bcd78272108e7dbaddadb9 Mon Sep 17 00:00:00 2001 From: baima365-web Date: Sun, 26 Jul 2026 20:22:33 +0800 Subject: [PATCH] fix(net): hold queued _writev chunks by reference instead of concat + native copy Socket.prototype._writev was concatenating all chunks into one Buffer via Buffer.concat(), then passing to _write which copies again. For high-throughput scenarios this pays for three copies of the queue. Fix: pass chunks array directly to _write which can handle it natively, avoiding the intermediate Buffer.concat(). Fixes #35940