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

Issue 435553002: Improve utf8 decoding of single-char bytes, by isolating the loop. (Closed)

Created:
6 years, 4 months ago by Anders Johnsen
Modified:
6 years, 4 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, floitsch, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Improve utf8 decoding of single-char bytes, by isolating the loop. BUG= R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=38776

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revert debug change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M sdk/lib/convert/utf.dart View 1 5 chunks +17 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
I see a ~3x speedup in one case (actually more, due to GC overhead).
6 years, 4 months ago (2014-07-31 09:26:57 UTC) #1
Florian Schneider
lgtm https://codereview.chromium.org/435553002/diff/1/sdk/lib/convert/utf.dart File sdk/lib/convert/utf.dart (right): https://codereview.chromium.org/435553002/diff/1/sdk/lib/convert/utf.dart#newcode440 sdk/lib/convert/utf.dart:440: var str = new String.fromCharCodes(codeUnits); Why this change?
6 years, 4 months ago (2014-07-31 11:19:49 UTC) #2
Anders Johnsen
https://codereview.chromium.org/435553002/diff/1/sdk/lib/convert/utf.dart File sdk/lib/convert/utf.dart (right): https://codereview.chromium.org/435553002/diff/1/sdk/lib/convert/utf.dart#newcode440 sdk/lib/convert/utf.dart:440: var str = new String.fromCharCodes(codeUnits); On 2014/07/31 11:19:49, Florian ...
6 years, 4 months ago (2014-07-31 12:23:03 UTC) #3
Anders Johnsen
6 years, 4 months ago (2014-07-31 12:23:17 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r38776 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698