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 14 in printed book and digital formats -- plus a one-year subscription 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

PDF:

Feature

Adventures in Optimization

Haste Makes Waste

Issue: 9.5 (July/August 2011)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 18,279
Starting Page Number: 33
RBD Number: 9507
Resource File(s):

Download Icon 9507.zip Updated: Tuesday, July 5, 2011 at 11:16 AM

Related Web Link(s):

http://zeedar.com/novels/
http://z-write.com

Known Limitations: None

Excerpt of article text...

This is a story about optimization. While most articles on optimization tell you what you should do, this is an example of what you shouldn't do. I learned this the hard way; you can learn from my mistakes.

Generally I find Real Studio more than sufficiently fast for my modest needs. Even my bad "quick-and-dirty" code runs fast enough for my in-house or rarely used programs. Occasionally, however, I run into a situation where the code is just too slow to be usable. When that happens, it's time to optimize.

There are numerous approaches to optimizing code, but the bottom line is that you're wanting efficiency. So you look for code that's doing more than it needs to do, extra variables or steps, poor algorithms, and so on, and then you try to make that code more efficient.

Case Study: NameDB

As you might be aware, my grand ambition is be a full-time novelist and in that quest I have written two novels (http://zeedar.com/novels/). Novel writing is not easy and I've written various software tools to help. Some of these are publicly available, such as my Z-Write word processor (http://z-write.com), while others are tools I just wrote for myself.

...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