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 19.4 ('SpeedTest')
Instant purchase and download via GumRoad!

FEATURE

The Need for Speed

Is your app too slow? Or is your app fast enough? And how would you know?

Issue: 19.4 (July/August 2021)
Author: Markus Winter
Author Bio: Markus is a Molecular Biologist who taught himself REALbasic programming in 2003 to let the computer deal with some exceedingly tedious lab tasks. Some call it lazy, he thinks it smart. He still thinks of himself as an advanced beginner at best.
Article Description: No description available.
Article Length (in bytes): 18,968
Starting Page Number: 12
Article Number: 19402
Resource File(s):

Download Icon project 19402.zip Updated: 2021-07-01 11:16:06

Related Link(s): None

Excerpt of article text...

I often find myself having to measure the speed of some piece of code. It could be a method, or a loop, but most of the time it is different algorithms I'm trying out within a method.

Why within a method? Because I can see the code of the other algorithm and compare it with what I am doing. Oldtimers might remember that the old REAL.studio IDE had the ability to split a code window (which I found very useful), but I'm not aware of the Xojo IDE being able to do that.

In any case, I have made myself a little system to easily measure speed and show the results in different ways. And I assumed that everyone else had done the same. So I was quite surprised to hear that this is not the case.

Xojo's Profiler

Of course, Xojo already has a profiler that can analyze the speed of your app—so why create your own speed measuring system? That's a fair question.

But while the profiler is very useful, it isn't ideal. For one thing, its use is limited. It won't work in sandboxed apps, or on iOS (which admittedly I haven't really used), or with the remote debugger.

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