-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
In profiling my application, I noticed that packets.ReadPacket was making extra unnecessary allocations by calling io.CopyN (which internally allocates its own temporary buffer). In this example, we can just call r.Read to eliminate that extra allocation. I would like to comb through the code (or at least the codepaths my applications use :) ) and see if there are any other low hanging fruit as well.
(I'm making this issue as somewhat of a formality since the PR template says to open an issue first.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels