Click here to Skip to main content
15,895,283 members

Comments by halex2005 (Top 4 by date)

halex2005 7-Oct-10 14:47pm View    
Deleted
Reason for my vote of 3
not useful after Skott Meyers' "Effective C ".
halex2005 7-Oct-10 14:38pm View    
Deleted
Reason for my vote of 3
Reading "effective c " book solve this unprofessional thinking.
halex2005 7-Oct-10 14:35pm View    
Deleted
Reason for my vote of 3
Check my comment with three corrections. Your exapmle runs very fast and error of elapsed time calculation occurs. I don't belive in your current result.
halex2005 7-Oct-10 14:32pm View    
Deleted
I think that time results have an errors of calculation.

1) Try to use more precise System.Diagnostics.Stopwatch class for elapsed time calculations.

2) Make time calculation for loop:
{
get time
loop (counter in range(0,n))
{
your string concat/format test
}
get time, calculate elapsed time
}
I recommend you select variable n to value that corresponds elapsed time about one second for one of resuls.

3) insert space in format string between parameters {0} and {1} for correct result of concatenation.