Re: improvement of index-calculation
- From: "Ralf Mimoun" <nospam@xxxxxxxxx>
- Date: Wed, 27 Jul 2005 12:19:45 +0200
Guenther Wimpassinger wrote:
....
> pCldFront : PDwordArray;
> iCloudDimXZ,iBitMaskY : Integer (private fields of the class).
>
> It is possible to pre-calculate ((iCloudDimXZ shl 1)-5) in the
> constructor of the class to another private field.
Sure. Simply convert iCloudDimXZ to a property and calculate that value in
SetiCloudDimXZ. And try to cache what you calculated, that's almost always
the best optimization.
Ralf
.
- References:
- improvement of index-calculation
- From: Guenther Wimpassinger
- improvement of index-calculation
- Prev by Date: Re: Fastcode MM B&V 0.48
- Next by Date: Re: Fastcode MM B&V 0.47
- Previous by thread: improvement of index-calculation
- Next by thread: Re: improvement of index-calculation
- Index(es):