How do distributions work and how do you prevent them?

The go go tool has a profiler that can tell you the amount of the appropriations you made inside the code. However, seeing libraries like this one: https://github.com/valyala/fasthttp indicating "Zero memory allocations in hot paths" ... what does this mean? and how do you achieve this in Go?

+4
source share
1 answer

I personally don’t like their use of the language, because it sounds like something a marketer would say ... All they want to say is that there will not be any allocations in this code, because the buffer was allocated in advance for use there.

, , " ". ? , .

() (, , ), , ).

, , byte_buffer.go args.go, , , , ect . ( ) , , , . , , . , , , , net/http, .

+3

All Articles