go-tarantool icon indicating copy to clipboard operation
go-tarantool copied to clipboard

v3: make some types immutable

Open oleg-jukovec opened this issue 2 years ago • 0 comments

I made mistakes in some types. I used pointers receivers instead of immutable receivers. It leads to inefficient work to GC, see

https://medium.com/a-journey-with-go/go-should-i-use-a-pointer-instead-of-a-copy-of-my-struct-44b43b104963 https://www.sobyte.net/post/2021-10/go-pointer/

But even in spite of this it will be less confusing to make immutable all *Request types, Datetime, Interval, ?

oleg-jukovec avatar Nov 24 '22 21:11 oleg-jukovec