Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Terrible slowdown on .NET processing
Message
From
07/05/2006 16:21:59
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01119485
Message ID:
01119958
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform