Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: return a new object by reference fire a C5 crash
Message
De
13/04/2004 13:52:15
 
 
À
13/04/2004 13:05:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893984
Message ID:
00894508
Vues:
12

Hello Tore, I was aware of this. I guess I've alway used other naming conventions to avoid this Conflict.
As far as the performance issue in my testing the difference is negligible.


You are sure ?

Run this:
* POWERUP CPU
FOR I=1 TO 10000000
NEXT
nCycle = 1000000
* COMPUTE 
TLOOP=SECONDS()
myVariable=1
FOR I=1 TO m.nCycle
NEXT
CLEAR
TLOOP= SECONDS()-M.TLOOP
? "WITHOUT A WORKAREA ACTIVE"
SELECT 0
TZ=SECONDS()
myVariable1=1
myVariable2=1
FOR I=1 TO m.nCycle
  myVariable1 = myVariable1+myVariable2
NEXT
? SECONDS()-M.TZ-M.TLOOP
TZ=SECONDS()
myVariable1=1
myVariable2=1
FOR I=1 TO m.nCycle
  myVariable1 = M.myVariable1+M.myVariable2
NEXT
? SECONDS()-M.TZ-M.TLOOP

? "WITH A WORKAREA ACTIVE"
CreateCursor(1)
TZ=SECONDS()
myVariable1=1
myVariable2=1
FOR I=1 TO m.nCycle
  myVariable1 = myVariable1+myVariable2
NEXT
? SECONDS()-M.TZ-M.TLOOP
TZ=SECONDS()
myVariable1=1
myVariable2=1
FOR I=1 TO m.nCycle
  myVariable1 = M.myVariable1+M.myVariable2
NEXT
? SECONDS()-M.TZ-M.TLOOP

PROCEDURE CreateCursor(K)
	sCursor = ''
	FOR k=2 TO 255
		sCursor = m.sCursor +",Xlcbuffer_"+LTRIM(STR(m.k))+" I"
	NEXT
	CREATE CURSOR bbb ( lcbuffer_001	I &sCursor.)
ENDPROC
This performance difference is valid for This,Thisform and Thisformset.

It is like the LOCATE and GO TOP problem,
without SET FILTER and a SET ORDER, GO TOP is little faster,
but with SET FILTER and a SET ORDER, LOCATE can to be 2-1000 times faster.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform