JamesNK/Newtonsoft.Json — pull request #341 by bbowyersmyth (2014-08-01 21:25:48+00:00)
Title: ToCamelCase performance and memory tuning

Depending on string length, but going by ToCamelCase unit tests, 25% faster and 57% less memory allocations.

StringBuilder creates a 16 char default buffer. Faster and easier in this case just to an exact sized char[]. This also prevents the garbage created via the Substring().