Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Issue 7241023: Improve JSON.parse to use less memory when using escaped and non-ascii... (Closed)

Created:
9 years, 6 months ago by sandholm
Modified:
9 years, 5 months ago
Reviewers:
Lasse Reichstein, Rico
CC:
v8-dev
Visibility:
Public.

Description

Improve JSON.parse to use less memory when using escaped and non-ascii characters.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Total comments: 17

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -72 lines) Patch
M src/json-parser.h View 1 2 3 7 chunks +127 lines, -72 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sandholm
9 years, 6 months ago (2011-06-24 13:12:31 UTC) #1
Lasse Reichstein
No capes^H^H^H^H^Hgotos! The logic is too complex, with the same test being used to both ...
9 years, 6 months ago (2011-06-24 13:56:00 UTC) #2
sandholm
I rewrote things and addressed all but one of your comments. Please have another look. ...
9 years, 5 months ago (2011-06-28 13:54:27 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/7241023/diff/3001/src/json-parser.h File src/json-parser.h (right): http://codereview.chromium.org/7241023/diff/3001/src/json-parser.h#newcode111 src/json-parser.h:111: // as first part of a ConsString Comment ...
9 years, 5 months ago (2011-06-29 09:27:29 UTC) #4
sandholm
Lasse, thanks for doing the review. I like all of your comments and improvements. http://codereview.chromium.org/7241023/diff/5001/src/json-parser.h ...
9 years, 5 months ago (2011-06-29 10:44:39 UTC) #5
Lasse Reichstein
9 years, 5 months ago (2011-06-29 10:52:59 UTC) #6
http://codereview.chromium.org/7241023/diff/5001/src/json-parser.h
File src/json-parser.h (right):

http://codereview.chromium.org/7241023/diff/5001/src/json-parser.h#newcode531
src/json-parser.h:531: template ShrinkStringAtAllocationBoundary<StringType>(
It'll do :)
It's probably better to keep it there, than to start introducing the top of
newspace here, when we don't otherwise use it.

Powered by Google App Engine
This is Rietveld 408576698