-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commitment: avoid binary.Wirte (#12912)
`binary.Write` is slow: - does dynamic interface method call - does alloc - bench of `binary.Write` vs `binary.BigEndian.PutUint32` shows 100ns vs 1ns Also i turned `putUvarAndVal` into method (otherwise it allocates closure - and it's context).
- Loading branch information
1 parent
42e96b9
commit afd7697
Showing
1 changed file
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters