Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Terrible slowdown on .NET processing
Message
De
07/05/2006 16:21:59
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01119485
Message ID:
01119958
Vues:
23
>In addition to Cetins hints, keep in mind that you are constantly re-reading a single value unnecessarily. In your scenraio you should store the value oRow["SomeField"] to a typed value then assign that.
>
>Maybe not a big deal in this scenario since you're not looping, but in other scenerios you definitely don't want to call the row repeatedly as type conversion occurs on every single one of those row accesses.
>
>When in a loop too it's often better to use a TableColumn as an index instead of a string. I've seen situations where using strings is 10 times slower than the TableColumn itself which is the natively stored hashvalue.

The stringbuilder has resolved the issue.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform