Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dotnetpro database performance contest
Message
De
11/05/2007 16:25:52
 
 
À
11/05/2007 08:50:38
Markus Winhard
Lauton Software GmbH
Nürnberg, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
VFP Compiler for .NET
Divers
Thread ID:
01224231
Message ID:
01224829
Vues:
10
Hi Markus,

>I checked the real test data (500,000 records) for things like these and my sample code does what's necessary but not more.

well, less lines should run faster at least in vfp...
SELECT Table2

SCAN
  lcName = RTRIM( Name )
  lcStrasse = RTRIM( Strasse )
  *
  FPUTS( m.lnFHandle, ;
        STUFF( m.lcName, RAT( " ", m.lcName ), 1, ", " ) +", " ;
      + STUFF( m.lcStrasse, RAT( " ", m.lcStrasse ), 1, ", " ) ;
      + ", " ;
      + StrTran(RTrim(m.lcOrt), " ", ", ", 1, 1) ;
      +", " ;
      + RTRIM( eMail ) )
ENDSCAN
and if the "vorname" has also only blanks at the end,
an analogous approach to PLZ / Ort might give some more speed while eliminating another local var.

And AFAIR there was a faster way than FPUTS to write to disk, but that might have been only in certain data sizes.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform