From cf267ff7d725bcc3b1bded47bfd5ea2de511ed60 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 19 May 2023 10:03:24 +0300 Subject: [PATCH] optimize memory layout of ackhandler.Packet (#3844) Before: 88 bytes. After: 80 bytes. --- internal/ackhandler/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ackhandler/packet.go b/internal/ackhandler/packet.go index 394ee40a..849eea69 100644 --- a/internal/ackhandler/packet.go +++ b/internal/ackhandler/packet.go @@ -9,12 +9,12 @@ import ( // A Packet is a packet type Packet struct { + SendTime time.Time PacketNumber protocol.PacketNumber Frames []*Frame LargestAcked protocol.PacketNumber // InvalidPacketNumber if the packet doesn't contain an ACK Length protocol.ByteCount EncryptionLevel protocol.EncryptionLevel - SendTime time.Time IsPathMTUProbePacket bool // We don't report the loss of Path MTU probe packets to the congestion controller.