Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RELEASE memory - vs - reDIMENSION
Message
 
À
12/08/2002 09:48:34
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00688564
Message ID:
00691348
Vues:
22
HI Patrick,

>question: when you reduce the array length via the DIMENSION
>statement, is that memory freed up as effectively as
>if i RELEASE the array entirely and recreate it ?

VFP uses a handle based memory which can be moved around if needed. Therefore memory fragmentation is not a big issue in VFP. From the amount of memory allocated, it doesn't make a difference if you RELEASE or DIMENSION. Performancewise I haven't tested this, but I'd guess that DIMENSION is faster. We talk about times here that are insignificant for most applications, though. If you fear that you might run into performance issue due to memory fragmentation, you can force a garbage collection with SYS(1104).

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform