Go Optimizations 101 Go Optimizations 101

Go Optimizations 101

    • $9.99
    • $9.99

Publisher Description

About Go Optimizations 101

This book provides some code performance optimization tricks, tips, and suggestions. Most of the contents in this book are made based on the official standard Go compiler and runtime implementation.

Life is full of trade-offs, the programming world is, too. In programming, we often need to make trade-offs between code readability, maintainability, development efficiency, and program efficiency, etc. Even for one of the aspects, there are also trade-offs needing to be made. Taking program efficiency for an example, we might need to make trade-offs between memory saving, code execution speed, and implementation difficulty, etc.

In practice, most parts of the code base of a project don't need to be implemented with high performances. Keeping them maintainable and readable is often more important (than making them memory saving and run very fast). The suggestions made in this book are just for the code parts which implementations really need to be high performant. Some of the suggestions often causes more verbose code. And please note that some of the suggested implementation might only be performant at some certain scenarios, and might be not at others.

The contents in this book include:

* how to consume less CPU resources.
* how to consume less memory.
* how to make less memory allocations.
* how to control memory allocation places.
* how to reduce garbage collection pressure.

This book neither explains how to use performance analysis tools, such as pprof, nor tries to study deeply on compiler and runtime implementation details. None of the contents provided in this book make use of unsafe pointers and cgo. And the book also doesn't talk about algorithms. In other words, this book tries to provide some optimization suggestions in a way which is clearly and easily to understand, for daily general Go programming.

GENRE
Computers & Internet
RELEASED
2022
February 14
LANGUAGE
EN
English
LENGTH
158
Pages
PUBLISHER
Liu Xu
SELLER
Liu Xu
SIZE
233.4
KB

More Books Like This

C++ High Performance C++ High Performance
2018
C++ High Performance C++ High Performance
2020
Write Great Code, Volume 2, 2nd Edition Write Great Code, Volume 2, 2nd Edition
2020
The Complete Friday Q&A: Volume II The Complete Friday Q&A: Volume II
2017
100 Go Mistakes and How to Avoid Them 100 Go Mistakes and How to Avoid Them
2022
C Programming: Questions and Answers C Programming: Questions and Answers
2018

More Books by Liu Xu

Go 101 Go 101
2019
Go Details & Tips 101 Go Details & Tips 101
2022
Handbook of Ecological Indicators for Assessment of Ecosystem Health Handbook of Ecological Indicators for Assessment of Ecosystem Health
2016
Go Generics 101 Go Generics 101
2022