Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing goes out of memory
Message
De
09/11/2013 10:29:14
 
 
À
09/11/2013 04:55:25
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587600
Message ID:
01587624
Vues:
26
>As Rob points out there's no advantage, memory wise, in using StringBuilder() here - you are still creating a new string with each call. If you are doing multiple replaces with repeated calls for the same initial string then this shows one approach (and an interesting speed comparison):

A client application does a lot of SQL Server requests. One of them is looping over 75000 records. Each of them has a very intensive logic and applies a bunch of additional requests. So, there is no initial point. All of those locations are not related to another. So, they have to call this method for some replacements. So, it is not the same initial string. I believe, if we would look in the archive here, that this enhancement to StrTran() method was turned into a StringBuilder() approach for performance issue when negotiating with a large string where some replaces are needed. At first, it was using a string replace. But, the fact that it now uses a StringBuilder(), on one very particular situation, it causes this situation. Knowing that all those calls do not come from the same initial string, is the link you provided still applicable?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform