Most speed tricks are language independant. Mostly they focus around
eliminating repeated code.
For example, this:
if (MyClassArray(SlowFunction).Property1 = 1 and MyClassArray
(SlowFunction).Property2 = 2 and MyClassArray(SlowFunction).Property3
= 3) then
that is ridiculously slow. It's also repeated code.
Instead do this:
MyClass = MyClassArray(SlowFunction)
if MyClass.Property1 = 1 and MyClass.Property2 = 2 and
MyClass.Property3 = 3 then
As for RB specific tricks... most of them focus around the graphics
class or GUI classes. For example making a listbox invisible while
populating it. Or using RGBSurface instead of graphics.
If you want faster stuff with strings, my plugin helps a lot. My
FastString class is probably the most attractive thing about my
plugin, despite it being such a simple class. It's not just a fast
appender of strings, it does a lot more. For example one of it's many
extra abilities, it can write numbers as text at least 22x faster
than RB can do it. And it gives really handy options in writing
numbers, for example padding them with 0 to a specified number of
digits.
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>