Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incredible performance degration behaviour
Message
De
14/01/2005 09:48:50
 
 
À
13/01/2005 10:01:35
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00976753
Message ID:
00977191
Vues:
40
>
>Any comments ?

Hi Walter,

this is another degradation:
CLEAR ALL
CLEAR
SET TALK OFF
SET NULL ON

? "2 tables"
? "---------"
FOR nT = 51 TO 52
	SELECT 0
	CREATE CURSOR ("Res"+ALLTRIM(STR(nT))) (C C(1))
	APPEND BLANK
ENDFOR
DO TestPerfO
?
? "10 tables"
? "---------"
CLEAR ALL
FOR nT = 50 TO 60
	SELECT 0
	CREATE CURSOR ("Res"+ALLTRIM(STR(nT))) (C C(1))
	APPEND BLANK
ENDFOR
DO TestPerfO

?
? "60 tables"
? "---------"

CLEAR ALL
FOR nT = 1 TO 60
	SELECT 0
	CREATE CURSOR ("Res"+ALLTRIM(STR(nT))) (C C(1))
	APPEND BLANK
ENDFOR
DO TestPerfO

?
? "100 tables"
? "---------"

CLEAR ALL
FOR nT = 1 TO 100
	SELECT 0
	CREATE CURSOR ("Res"+ALLTRIM(STR(nT))) (C C(1))
	APPEND BLANK
ENDFOR
DO TestPerfO

PROCEDURE TestPerfO
nSec= SECONDS()
WITH CREATEOBJECT("someObject")
     .test
ENDWITH

? "1.000.000 property call", SECONDS() - nSec

DEFINE CLASS someObject AS Custom

   someproperty = .F.
   
   PROCEDURE test
      FOR nT = 1 TO 1000000
	     =this.someproperty 
       ENDFOR
ENDDEFINE
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform