Why is my code so slow?
-
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
-
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
That is the better substitute for string.Empty ;P
I am fighting against the Universe... Reference-Rick Cook
-
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
Hey - you told that intern to use
StringBuilder
, because it is presumed to be faster.:cool: :laugh:
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words -
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
-
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
-
This one showed up in a code review. 'Nuff said.
string EntityID = new System.Text.StringBuilder("").ToString();
Cheers! Humble Programmer ,,,^..^,,,
Humble Programmer wrote:
string EntityID = new System.Text.StringBuilder("").ToString();
string EntityID = new System.Text.StringBuilder("").ToString()**.Replace("", "");**
This should make it faster;P
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
-
Humble Programmer wrote:
string EntityID = new System.Text.StringBuilder("").ToString();
string EntityID = new System.Text.StringBuilder("").ToString()**.Replace("", "");**
This should make it faster;P
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
-
Humble Programmer wrote:
string EntityID = new System.Text.StringBuilder("").ToString();
string EntityID = new System.Text.StringBuilder("").ToString()**.Replace("", "");**
This should make it faster;P
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
string EntityID = new System.Text.StringBuilder("").ToString().Replace("", "").Trim(); Just to remove any errant spaces ...
-
string EntityID = new System.Text.StringBuilder("").ToString().Replace("", "").Trim(); Just to remove any errant spaces ...