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

Issue 987433005: remove most string concat, fixes #7 (Closed)

Created:
5 years, 9 months ago by Jennifer Messerly
Modified:
5 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/html.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

remove most string concat, fixes #7 This fixes most of the egregious cases of string concat in the HTML tokenizer: * attribute names/values * data/comments * script/rawtext/rcdata It also fixes adjacent text nodes in TreeBuilder, which happens whenever space characters are adjacent to characters. There's still an issue of preserving char codes for longer, but this should get out of the O(N^2) at least. R=sigmund@google.com Committed: https://github.com/dart-lang/core-elements/commit/243cbc9c40e7022f35a0a108f488ff30bb735061

Patch Set 1 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -97 lines) Patch
M lib/dom.dart View 2 chunks +24 lines, -4 lines 0 comments Download
M lib/parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/token.dart View 3 chunks +27 lines, -3 lines 0 comments Download
M lib/src/tokenizer.dart View 40 chunks +88 lines, -87 lines 1 comment Download
M lib/src/treebuilder.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Jennifer Messerly
5 years, 9 months ago (2015-03-05 21:17:55 UTC) #4
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/987433005/diff/40001/lib/src/tokenizer.dart File lib/src/tokenizer.dart (right): https://codereview.chromium.org/987433005/diff/40001/lib/src/tokenizer.dart#newcode1396 lib/src/tokenizer.dart:1396: currentStringToken.add(data).add(stream.charsUntil("-\u0000")); maybe use cascades here and below? (instead ...
5 years, 9 months ago (2015-03-05 23:01:56 UTC) #5
Jennifer Messerly
5 years, 9 months ago (2015-03-05 23:05:24 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:40001) manually as
243cbc9c40e7022f35a0a108f488ff30bb735061 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698