-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zmtp: improve perfs of Connection.read{,Multipart} (#71)
* zmtp: improve perfs of Connection.(read|send){,Multipart} This CL uses io.ReadFull to make sure all requested bytes are read from an io.Reader. It's also using binary.ByteOrder.Uint64 and binary.ByteOrder.PutUint64 directly instead of going the round about way through (slow) reflection. Fixes #67. Fixes #61. * zmtp: reduce number of allocs in Connection.SendCommand * zmtp: reduce number of allocs in Connection.writeMetadata * zmtp: removed reflection from de/serializing greetings * zmtp: remove slow reflection in Connection.recvMetadata
- Loading branch information
Showing
2 changed files
with
98 additions
and
82 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
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