Efficient Go by Bartlomiej Plotka

Efficient Go by Bartlomiej Plotka

Author:Bartlomiej Plotka [Bartlomiej Plotka]
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2022-12-24T16:00:00+00:00


Efficiency-Aware Development Flow

The primary concerns of the programmer during the early part of a program’s life should be the overall organization of the programming project and producing correct and maintainable code. Furthermore, in many contexts, the cleanly designed program is often efficient enough for the application at hand.

Jon Louis Bentley, Writing Efficient Programs (1982)

Hopefully, at this point, you are aware that we have to think about performance, ideally from the early development stages. But as we mentioned in “Be Vigilant to Simplifications” there are risks. Let’s say it loud. We don’t develop code for it to be just efficient. We write programs for certain functionality that will match the functional requirements we set or get from stakeholders. Our job is to get this work done effectively, so a pragmatic approach is necessary. How might the process of developing a working but efficient code might look from a high-level point of view?

We can simplify the whole development process to ten steps, as presented in Figure 3-8. For lack of better terms, let’s call it TFBO flow—test, fix, benchmark, optimize.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.