Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Novice VBA question

Author: Dan Honeycutt

Date: 11:26:20 04/07/04

Go up one level in this thread


On April 07, 2004 at 13:16:40, José Carlos wrote:


>  Just a small sugestion: don't use 'integer' because it's 16 bits (-> slow).
>Use 'long' instead.
>
>  José C.

Good point.  For the size array you have (from post below):

Sub WhiteMoveArray()
Dim MoveArray(1 To 10000, 1 To 100)

Thats a 1 million element array.  And i assume you have another one for
BlackMoveArray().  You may want to use an integer to keep from running out of
RAM.  (I guess VB supports that, I never tried an array that big).  But right
now you have a variant which is the slowest of all.

Dan H.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.