» Home » VB Fibre
Site
News
Files

Visual Basic
Strings
Math
General
Properties
Memory
Methods

Search
Testing

Inline ASM-VB
Strings
Math
General
Memory

Search
Using inline ASM
Submit!

For…Next: Always use longs (21-02-2004)
Never use anything else than longs in loops.

For…Each vs. For...Next (21-02-2004)
Using For...Next in arrays is a lot faster than For...Each.

Arrays: Temporary variables (21-02-2004)
Well no doubt about it. Temporary variables are going to speed up your program.

Always remove "Debug.Print" (21-02-2004)
Well, the results speak for themself.

Declare constant with a type (21-02-2004)
Such a simple thing can improve performance that much!

Early vs. Late binding (21-02-2004)
Well, the difference is really unproportional =-)

Select Case vs If Then (21-02-2004)
The difference is really minimal.

"Next I" vs. "Next" (21-02-2004)
For once and for all here's the answer for many discussions :)

IIf vs. If...Then (21-02-2004)
Using IIf certainly is slower than the normal "If...Then" clause.

"Dim X as New Y" vs. "Set X = New Y" (21-02-2004)
Slightly speed increase here,

Multiple DoEvents (21-02-2004)
It seems that having more than one DoEvents will really slow down the loop a lot.

While vs Exit Do (21-02-2004)
The difference is very small, although there seems to be one exception.

Single vs Multi dim arrays (21-02-2004)
Single arrays are much faster.

Module Longs vs local Longs (21-02-2004)
Very interesting,