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

Issue 9.5

FEATURE

Optimizing Parsing Code

I feel the need. The need for speed.

Issue: 9.5 (July/August 2011)
Author: Brendan Murphy
Author Bio: Brendan is the founder of True North Software (http://www.TrueNorthSoftware.com) and creator of the Formatted Text Control (a word processor control for Real Studio). He worked for Motorola for many years and has extensive experience working on very large projects. He is a Sci-Fi fan and is still mourning the canceling of Stargate.
Article Description: No description available.
Article Length (in bytes): 11,552
Starting Page Number: 27
Article Number: 9506
Resource File(s):

Download Icon 9506.zip Updated: 2011-07-05 10:41:48

Related Web Link(s):

http://www.TrueNorthSoftware.com

Excerpt of article text...

A while back I implemented an optimization in my RTFParser for the Formatted Text Control which resulted in an overall measured speed increase of 33%! This optimization mainly applies to situations of parsing, but it can be applied to other scenarios if certain conditions are met.

Let's say you have a select statement in your code like the following.

select case token

case "alligator"

Do something specific...

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