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
9507.zip Updated: Tuesday, July 5, 2011 at 11:16 AM
Related Web Link(s):
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.