-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Your environment.
- Version: v0.1.37
- Browser: no browser
What did you do?
| payload := make([]byte, 2) |
| p.payload = append(payload, p.payload[:len(p.payload)-paddingLength]...) |
cause excessive memory allocation, and add GC Pressure
Pprof heap shows
2561.99kB 22.72% 22.72% 510.99kB 4.53% github.com/pion/interceptor/pkg/nack.(*packetManager).NewPacket
What did you expect?
A reduction in unwanted heap memory creation.
What happened?
Spike in CPU while GC
Metadata
Metadata
Assignees
Labels
No labels