Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2003 Server
I'd insert "in a loop" after strings, as they did some optimizatons for concatenating in a line and probably in directly following lines.
>Generally, concatenating strings is a bad thing in .Net and a huge waste of resources. You're probably better off with StringBuilder.
>
>>May be it's paranoia, but assuming the original ReturnMessage is quite long, this would be waste of resources. I am thinking may be I better off using a builder and just concatenate strings here instead?
>>
>>I haven't run any performance tests yet, in fact, I'm deep in re-factoring today - I created a bunch of new classes and changing code to get rid of passing messages by reference around but rather re-use the new classes.
>>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement