Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

Optimizing REALbasic

Optimizing REALbasic

Optimizing with Stock Replacements

Issue: 4.2 (November/December 2005)
Author: Hank Marquis
Article Description: No description available.
Article Length (in bytes): 9,219
Starting Page Number: 44
RBD Number: 4221
Resource File(s): None
Related Web Link(s):

http://www.extremeoptimizing.com
http://www.slayfire.com
http://www.slayfire.com/OptimizerScience/speedtest7.html

Known Limitations: None

Excerpt of article text...

In the last issue I introduced the concept of what I call Extreme Optimization (XO). XO is a way of writing code that produces the fastest code in the least amount of time. One of the key elements of XO is to optimize as you code, and never wait until after development is complete to start optimizing. Another principle is the concept of making many small changes in your code. The net affect of many small changes is often a dramatic improvement of overall performance of an application. This issue I want to focus on how to combine these two XO concepts into a single useful habit: coding stock replacements.

Stock Replacements

A stock replacement is code you write in a specific way every time you need to address a particular programming need. A stock replacement is a "best practice" that provides a repeatable performance gain.

The idea behind the stock replacement is that the code you write for some programming tasks is virtually always going to induce a performance penalty. Loop constructs such as Do, For, and While are examples. Instead of waiting until after development concludes to optimize, XO says optimize as you code. Our goal is to train ourselves and develop a method of coding that builds in optimization as we code so that we don't't have to spend time trying to optimize later.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com