Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable Nagle's algorithm by default (#2242)
By default Node.js enables Nagle's algorithm. This adds a small delay when sending tiny buffers to batch-send them later. Unfortunately this makes protocol negotiation slower as the protocol strings are small enough to be batch sent. The change here is to turn it off by default, this reduces the perf test connection establisment from 1.2s to 0.8s. See the latency measurements in the "Connection Establishment" test [on this run](https://observablehq.com/@libp2p-workspace/performance-dashboard?branch=cac8364ac83a4d8856851687a605e50b1e3855fb) for an example.
- Loading branch information