Software engineers today typically put performance optimizations low on the list of development priorities. But despite significant technological advancements and lower-priced hardware, software efficiency still matters. With this book, Go programmers will learn how to approach performance topics for applications written in this open source language.
How and when should you apply performance efficiency optimization without wasting your time? Author Bartlomiej Plotka provides the tools and knowledge you need to make your system faster using fewer resources. Once you learn how to address performance in your Go applications, you'll be able to bring small but effective habits to your programming and development cycle.
In this book, you will undoubtedly learn a lot about my favorite programming language, Go, and how to optimize it. But don’t let the title of this book fool you. While I use Go as the example language to show the optimization mindset and observability patterns, 8 out of 11 chapters of this book are language agnostic. You can use the same techniques to improve software written in any other language like Java, C#, Scala, Python, C++, Rust, or Haskell.
Finally, if you expected a full list of low-level optimization tricks, this is not the right book. Firstly, optimizations do not generalize well. The fact that someone unrolled the loop or used a pointer in their struct field and achieved better efficiency does not mean it will be helpful if we do the same! We will go through some optimization tricks, but I emphasize complete knowledge about efficiency in pragmatic software development instead.
This book shows you how to:
Continuously monitor for performance and efficiency regressions Find the root cause of performance bottlenecks using metrics, logging, tracing, and profiling Use tools like pprof, go test, benchstat and k6.io to create reliable micro- and macro-benchmarks Improve and optimize your code to meet your goals without sacrificing simplicity and readability Make data-driven decisions by prioritizing changes that make a difference Introduce basic "performance hygiene" in day-to-day Go programming and testing
The Web Performance Collection Название: The Web Performance Collection Автор: Bruno Skvorc Издательство: SitePoint Год: 2018 Страниц: 566 Формат: EPUB Размер: 23 Mb Язык: English ...