DescriptionImprove JSONReader performance by up to 55% by using std::string instead of wstring.
Before this change, JSONReader would:
1. Take std::string input
2. Convert it to wstring
3. Parse
4. Decode strings for the object representation, converting wstring to string16
5. Create a base::Value with a string16, which internally converts back to std::string
After this change, JSONReader does:
1. Take std::string input
2. Parse
3. Create a base::Value with a std::string
BUG=111581
TEST=Covered by unittests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128678
Patch Set 1 #Patch Set 2 : uint32 to make win happy #Patch Set 3 : Pass Windows tests #
Total comments: 6
Patch Set 4 : Address comments #
Total comments: 2
Patch Set 5 : Use HexStringToInt #
Total comments: 4
Patch Set 6 : Safety for \x #
Messages
Total messages: 16 (0 generated)
|