Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 4.3

COLUMN

Optimizing REALbasic

Optimizing with Stock Replacements

Issue: 4.3 (January/February 2006)
Author: Hank Marquis
Author Bio: Hank Marquis is the creator of Extreme Optimizing (http://www.extremeoptimizing.com) and CTO of SlayFire Software Co., creating performance, quality, and porting tools for REALbasic (http://www.slayfire.com). He is the author of code optimization tools for Visual Basic and the author of VB6 Programmers Toolkit and the VB6 Bible and presents code optimization sessions at REAL World.
Article Description: No description available.
Article Length (in bytes): 12,552
Starting Page Number: 40
Article Number: 4319
Related Web Link(s):

http://www.extremeoptimizing.com
http://www.slayfire.com
http://www.itl.nist.gov/div898/handbook/prc/section1/prc13.htm
http://davidmlane.com/hyperstat/A28521.html
http://www.its.bldrdoc.gov/fs-1037/dir-001/_0125.htm

Excerpt of article text...

To optimize performance you must have a way of comparing two code blocks to see which method is faster. This article is part one of a three part series in which we will create a measuring system that provides statistically valid performance data. The "test harness" we build will be accurate, precise, and yield repeatable values about which you may feel confident.

The best way to explain how to compare code execution speed is by describing the incorrect method so many developers think they can use for optimization -- the Microseconds keyword. Many developers think optimization is as simple as follows:

  • Save Microseconds current value (Start)

  • Doing something interesting

  • Save Microseconds current value (Stop)

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