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

v3: design API to avoid allocations in responses

Open oleg-jukovec opened this issue 1 month ago • 0 comments

The memory profile for a benchmark could be viewed as follows:

$ go test -v . -bench BenchmarkSync_naive_with_custom_type -benchmem -run foobar -memprofile mem.out
$ go tool pprof -http ":8080" mem.out

As you can see, several allocations are related to a response:

Image

Our task is to design API of responses/futures in such a way as to avoid these allocations.

oleg-jukovec avatar Nov 04 '25 13:11 oleg-jukovec