Golang

All the articles tagged under golang

A Thread-safe Bytepool for Go

Dealing with memory in Go is relatively easy, compared to C or C++, since there's a built-in garbage collector. But if you allocate / deallocate memory thousands of time per seconds, like one of our API services at Viki, would there be a large overhead?

For example, our server returns JSON to client's request. Normally, the logically-sound way would be creating a new JSON string for every request...

Continue →