Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.         Profiler.BeginSample("string builder");
  2.         stringBuilder.Remove(0, stringBuilder.Length);
  3.         stringBuilder.AppendFormat("{0}{1}", a, b);
  4.         string c1 = stringBuilder.ToString();
  5.         Profiler.EndSample();
  6.  
  7.         Profiler.BeginSample("concat");
  8.         string c2 = a + b;
  9.         Profiler.EndSample();
  10.  
  11.         Debug.Log(c1 + " " + c2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement