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 2.3

COLUMN

Unroll the loops

Optimizing your code

Issue: 2.3 (December/January 2003)
Article Description: No description available.
Article Length (in bytes): 7,563
Starting Page Number: 46
Article Number: 2323
Resource File(s):

Download Icon 2323.zip Updated: 2013-03-11 19:07:57

Related Link(s): None

Excerpt of article text...

In one of my previous columns, Stego Part II, I mentionned a way of doing some things faster, especially by using MemoryBlocks instead of strings. Following this, there were requests for an article on optimization. I won't be able to cover everything in the space alloted here, but I'll give you a couple of improvements you can use in your code. We'll see how to improve square-angle image rotation with a few tricks that'll speed things up to nine times faster!

Image Rotation: 90 degrees that seem to take forever

We've all dealt with image rotation, at least at square angle: +/- 90 degrees, 180 degrees, horizontal or vertical mirror. This is not extremely difficult to achieve, but doing it fast is trickier. Let's see first a "standard" 90 degree rotation routine:

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