Re: [go-nuts] gob non-optimal serialization in case of interface

2021-04-05 Thread dev.nul...@gmail.com
Thanks everyone for the insights and suggestions. On Monday, 5 April 2021 at 13:47:20 UTC+8 Amnon wrote: > I would agree with Axel, that while gob is convenient, it never claims to > be optimal. > And if you care about size and speed of encoding then it may be worth > looking at > other serial

[go-nuts] gob non-optimal serialization in case of interface

2021-04-04 Thread dev.nul...@gmail.com
Hi, Gob in general is pretty efficient however I am seeing, what seems to be an anomaly in its behavior when it comes to serilazing interfaces. To elaborate, I have a program defining a simple interface called Dimension and a struct Point. *type Dimension interface{}* *type Point struct {* * X,