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

It's very interesting.

You try add this code:
	tt=SECONDS()
    loo=_SCREEN.ActiveForm
	FOR I=1 TO 1000000
	  =loo.FontName
	NEXT
	? '_SCREEN.ActiveForm II',SECONDS()-m.tt


	tt=SECONDS()
    loo=_VFP.ActiveForm
	FOR I=1 TO 100000
	  =loo.FontName
	NEXT
	? '_VFP.ActiveForm II  ',(SECONDS()-m.tt)*10
MartinJ

>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform