Skip to content

Commit 66378e1

Browse files
committed
Document frame layer performance improvements in change log
1 parent 20e083d commit 66378e1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ChangeLog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
## Changes between 2.7.0 and 2.8.0 (unreleased)
22

3-
No changes yet.
3+
### Performance Improvements in Frame Decoding and Encoding
4+
5+
Replacing `x == nil` with `x.nil?` in the frame layer hot path yields a
6+
consistent **+15–18% throughput improvement** in `Frame.decode_header`
7+
(called on every received frame) and **+12–14%** in `HeartbeatFrame.encode`,
8+
across Ruby 3.3, 3.4, and 4.0.
9+
10+
See benchmarks/BENCHMARKS.md for instructions on how to reproduce these numbers on your machine.
411

512

613
## Changes between 2.6.0 and 2.7.0 (Mar 31, 2026)

0 commit comments

Comments
 (0)