Make your programs run faster: avoid function calls
Function calls are not cheap operations and for time critical code it is better to avoid them. This article explores techniques you can use to avoid function calls thus speeding up your code.
Senior Software Engineer with 10 years of experience active in the domain of Linux and bare-metal based embedded systems. His professional focus is application performance improvement - techniques used to make your C/C++ program run faster by using better algorithms, better exploiting the underlying hardware, and better usage of the standard library, programming language, and the operating system.
Function calls are not cheap operations and for time critical code it is better to avoid them. This article explores techniques you can use to avoid function calls thus speeding up your code.
Learn about FlameGraphs, a great tool that will help you quickly find slow functions in your program.
Connection keeps dropping with SSH? Read about mosh, a simple addition to SSH that can keep your connection survive the rough network environment.
Traditional compilation-linking cycle generates binaries that work fine, but in case you need more speed, you need to learn about link time optimizations. Here we talk about what link time optimizations are, how to enable them and what improvements to expect.
We investigate how the data cache influences the performance of your program, talk about ways for you to write faster programs by better leveraging the data cache.
I believe everyone has some kind of problem or failure in their system that happens from time to time, that is not that terrible but it hurts the system. This is a short post about exactly that kind of problems and what we did to fix them. My company uses a very large continuous integration…