Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects are comfortable but veeeery sloooowed.
Message
From
04/08/2003 06:14:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Objects are comfortable but veeeery sloooowed.
Miscellaneous
Thread ID:
00816410
Message ID:
00816410
Views:
50
Hi,

Compare:
WFONT(1),
thisForm.FontName,
_SCREEN.ActiveForm.FontName
_vfp.ActiveForm.FontName
PUBLIC o1
o1 = CREATEOBJECT( "MyForm" )
o1.Show()

DEFINE CLASS MyForm AS Form
FontName ="Courier New"
PROCEDURE Click
	tt=SECONDS()
	FOR I=1 TO 1000000
	  =WFONT(1)
	NEXT
	? 'procedure         ',SECONDS()-m.tt
	tt=SECONDS()
	FOR I=1 TO 1000000
	  =thisform.FontName
	NEXT
	? 'thisform          ',SECONDS()-m.tt
	tt=SECONDS()
	FOR I=1 TO 1000000
	  =_SCREEN.ActiveForm.FontName
	NEXT
	? '_SCREEN.ActiveForm',SECONDS()-m.tt
	tt=SECONDS()
	FOR I=1 TO 100000
	  =_VFP.ActiveForm.FontName
	NEXT
	? '_VFP.ActiveForm   ',(SECONDS()-m.tt)*10

PROCEDURE UnLoad
  RELEASE o1
ENDDEFINE
thisForm is put only for comparation, but it reference to a specific object.

Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform