Article Preview
Buy Now
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):
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.