forked from quic-go/quic-go
optimize memory layout of ackhandler.Packet (#3844)
Before: 88 bytes. After: 80 bytes.
This commit is contained in:
@@ -9,12 +9,12 @@ import (
|
|||||||
|
|
||||||
// A Packet is a packet
|
// A Packet is a packet
|
||||||
type Packet struct {
|
type Packet struct {
|
||||||
|
SendTime time.Time
|
||||||
PacketNumber protocol.PacketNumber
|
PacketNumber protocol.PacketNumber
|
||||||
Frames []*Frame
|
Frames []*Frame
|
||||||
LargestAcked protocol.PacketNumber // InvalidPacketNumber if the packet doesn't contain an ACK
|
LargestAcked protocol.PacketNumber // InvalidPacketNumber if the packet doesn't contain an ACK
|
||||||
Length protocol.ByteCount
|
Length protocol.ByteCount
|
||||||
EncryptionLevel protocol.EncryptionLevel
|
EncryptionLevel protocol.EncryptionLevel
|
||||||
SendTime time.Time
|
|
||||||
|
|
||||||
IsPathMTUProbePacket bool // We don't report the loss of Path MTU probe packets to the congestion controller.
|
IsPathMTUProbePacket bool // We don't report the loss of Path MTU probe packets to the congestion controller.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user