Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб GopherCon 2018: Eben Freeman - Allocator Wrestling в хорошем качестве

GopherCon 2018: Eben Freeman - Allocator Wrestling 5 лет назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



GopherCon 2018: Eben Freeman - Allocator Wrestling

Conventional wisdom says that dynamic memory allocation is expensive, and that writing high-performance Go requires writing memory-efficient Go, i.e., minimizing heap allocations. Why exactly is that? What's going on under the hood anyways? If we have a Go service, can we figure out how much its allocation patterns actually affect its performance? And when is improving memory efficiency a good use of our time? To help answer these questions, Eben’s tutorial session will examine the Go runtime's implementation of malloc() in detail. He’ll look at some of its internal optimizations, to better understand when allocating is fast and when it's slow. Then Eben will show how to use Go's CPU profiler, heap profiler and execution tracer to help figure out when reducing allocations will actually speed up a program. Finally, he’ll discuss strategies for amortizing or reducing heap allocation, such as slab allocation, string interning, buffer recycling, and the Go standard library's `sync.Pool`. Eben will also review scenarios where these tricks have helped, some of the implementation challenges, as well as the numerous ways they can go wrong

Comments