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

Issue 208693008: Speed up ASCII, LATIN1, UTF8 converters, for single-byte codeunits. (Closed)

Created:
6 years, 9 months ago by Anders Johnsen
Modified:
6 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Speed up ASCII, LATIN1, UTF8 converters, for single-byte values. In case of Uint8Lists, LATIN1 is now simply calling String.fromCharCodes, skipping all checks. BUG=https://code.google.com/p/dart/issues/detail?id=17659 R=lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=34300

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
M sdk/lib/convert/convert.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/convert/latin1.dart View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M sdk/lib/convert/utf.dart View 1 2 3 4 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Anders Johnsen
6 years, 9 months ago (2014-03-23 08:07:59 UTC) #1
kevmoo
On 2014/03/23 08:07:59, Anders Johnsen wrote: I'd LOVE this to get in, BUT...this will break ...
6 years, 9 months ago (2014-03-23 23:17:31 UTC) #2
Anders Johnsen
It was my understanding that the types are defined, but allocation will fail on IE9 ...
6 years, 9 months ago (2014-03-24 07:38:52 UTC) #3
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/208693008/diff/40001/sdk/lib/convert/latin1.dart File sdk/lib/convert/latin1.dart (right): https://codereview.chromium.org/208693008/diff/40001/sdk/lib/convert/latin1.dart#newcode129 sdk/lib/convert/latin1.dart:129: // solution can be made. Is it still ...
6 years, 9 months ago (2014-03-24 09:21:00 UTC) #4
Lasse Reichstein Nielsen
This should work on IE9 too. The test is redundant, since there will never be ...
6 years, 9 months ago (2014-03-24 09:30:38 UTC) #5
Anders Johnsen
https://codereview.chromium.org/208693008/diff/40001/sdk/lib/convert/latin1.dart File sdk/lib/convert/latin1.dart (right): https://codereview.chromium.org/208693008/diff/40001/sdk/lib/convert/latin1.dart#newcode129 sdk/lib/convert/latin1.dart:129: // solution can be made. On 2014/03/24 09:21:01, Lasse ...
6 years, 9 months ago (2014-03-24 12:01:01 UTC) #6
Anders Johnsen
6 years, 9 months ago (2014-03-24 12:01:52 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r34300 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698