Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is faster: insert from memvar or insert fields?
Message
 
 
À
25/07/2006 13:33:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
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 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01139366
Message ID:
01139840
Vues:
18
>Oh my! Good I asked to change your GUID generation.
>
>
>* Try moving declaration into myGuid when you really have time to wait
>Declare Integer UuidCreate In 'RPCRT4.dll' String @pguid
>Declare Integer StringFromGUID2 In 'Ole32.dll' ;
>  string rguid, String @lpsz, Integer cchMax
>
>start = SECONDS()
>FOR ix=1 TO 100000
>	x=myGUID()
>ENDFOR
>? SECONDS()-m.start
>
>FUNCTION myGUID
>Local pGUID,rGUID
>
>pGUID=Replicate(Chr(0),16)
>rGUID=Replicate(Chr(0),80)
>
>UuidCreate(@pGUID)
>RETURN pGUID && 16 chars version - comment this and uncomment below for 38 version
>*StringFromGUID2(pGUID,@rGUID,40)
>*RETURN Strconv(Left(rGUID,76),6) && 38 chars version
>
Cetin

If I still want to use it in SP, how can I make sure I declared DLL only once? Using aDLLs would probably slow it down the same way as repeating declaration?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform