Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse comma-delimited string
Message
De
04/09/2019 17:32:52
 
 
À
04/09/2019 17:00:26
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01670542
Message ID:
01670585
Vues:
63
>Amazing!! So why isn't anything internal to FoxPro able to do it that fast?

VFP is interpreted even though it's running compiled VFP code.

C# / C++ compile down to raw CPU instructions with interspersed native library calls (for C#) or direct C Library / Win32 calls (for C++).

>A similar speed up could be had in SQL Server with CLR?

For some logic, yes. Not for everything. Remember also, the effort required to maintain very fast code is often 10x to 100x that of maintaining far more simple and easily understood code that is fast enough.

>>Rick,
>>If this is something worth timing for you, then wouldn't you think creating a FLL with C++ or Activex with C#? I made a quick one liner with C# and it was 4x faster than the fastest (alines).
>>
>>
>>string MyReverse(string lcForward)
>>{
>>	return string.Join(", ", lcForward.Split(',').Select(f => f.Trim()).Reverse());
>>}
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform