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
My program is saving a big data structure that is about half the current memory. I found
`Encode.EncodeValue` will firstly buffer all the data to the memory (in enc.byteBuf),
then write it as a whole (by calling enc.writeMessage). This consumes almost the same
amout of memory as the value to encode. My program then occasionally panic because of
out of memory.
Can we make it better?
go version go1.3 linux/386
The text was updated successfully, but these errors were encountered:
Messages in the stream are preceded by their byte count for the benefit of the decoder.
Without major restructuring and overhead, there is no way to preserve compatibility
without keeping the encoded message in memory so its length can be transmitted first.
by daviddengcn:
The text was updated successfully, but these errors were encountered: