O'Reilly logo

Solaris™ Application Programming by Darryl Gove

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Source Code Optimizations

Overview

The objective of this chapter is to introduce some common coding situations and to demonstrate how performance can be improved either by using the appropriate compiler flags or by modifying the source code.

As an adjunct to this, the code samples also demonstrate how to read the performance counters, and to identify what the bottleneck is in various situations.

Traditional Optimizations

Introduction

Many texts will list a number of optimizations that you can apply to source code. You should be careful if the code looks like it is susceptible to one of these optimizations. In many cases, the compiler may already be performing the optimization. If such an opportunity is identified, the first step is to determine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required