-Improve performance and memory usage when serializing Unicode characters

This commit is contained in:
James Newton-King
2012-07-09 18:35:41 +12:00
parent 737f490cac
commit 9d7046bca2
4 changed files with 102 additions and 11 deletions
+1 -2
View File
@@ -45,9 +45,8 @@ namespace Newtonsoft.Json.Utilities
public static char IntToHex(int n)
{
if (n <= 9)
{
return (char)(n + 48);
}
return (char)((n - 10) + 97);
}