Rob Pike
unread,Jul 18, 2012, 11:27:16 AM7/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rif, golan...@googlegroups.com
The gob package does a lot of work the first time it sees a type to
encode/decode on a given encoder/decoder. In effect, it builds a
little JIT. Once that's built it's reasonably efficient if there's
lots of data, but there is a modest constant-time overhead. Your
example contains nothing to encode (the structs are empty) so it's not
a realistic example upon which to base any decision about performance.
-rob