Scaling Simple Mathematics

When you’re looking for scaling opportunities, simple mathematical changes are often suggested. Such simple changes for a single instance seem unimportant. As use of the application increases, they can have a huge effect. It is easy to kill an application by millions of small cuts. A test of addition, subtraction, multiplication, and division for both integers and floats shows interesting results, as shown in Figure 1-4. What is more scalable in one language is not always more scalable in another.

Image

FIGURE 1-4. Results of performing simple math functions many times

Two major groups exist in the data. Using variables appears ...

Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.