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 20 in printed book and digital formats -- plus a one-year subscription (beginning with 21.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


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):


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.