You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a refactor that I didn't get around to doing:
packetizer uses framing byte to io.ReadFull the right amount of data out of the stream. Encapsulates this byte array in the Message object
Message object parses itself into a 3- or 4-array
Nuke the Transporter.ReadLock and the makeDecodeNext functions, since the data is already in the Message object
Change decoding to decode from a buffer inside of the Message object; this is where it gets dicey, since it might be heavyweight to make a new decoder for each message. Might want to "borrow" a local one. Unsure.
The text was updated successfully, but these errors were encountered:
jzila
pushed a commit
to jzila/go-framed-msgpack-rpc
that referenced
this issue
Oct 2, 2015
Here's a refactor that I didn't get around to doing:
io.ReadFull
the right amount of data out of the stream. Encapsulates this byte array in theMessage
objectMessage
object parses itself into a 3- or 4-arrayTransporter.ReadLock
and themakeDecodeNext
functions, since the data is already in theMessage
objectMessage
object; this is where it gets dicey, since it might be heavyweight to make a new decoder for each message. Might want to "borrow" a local one. Unsure.The text was updated successfully, but these errors were encountered: