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

Issue 445333004: Optimize latin1-decoder. (Closed)

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

Description

Optimize latin1-decoder. Instead of checking "allowInvalid" inside the innermost loop, create two different classes. Speeds up both cases significantly. BUG= http://dartbug.com/17659 R=ajohnsen@google.com Committed: https://code.google.com/p/dart/source/detail?r=39022

Patch Set 1 #

Patch Set 2 : Also check for negative inputs. #

Total comments: 1

Patch Set 3 : Change the test order, so the most commen error case is first. #

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

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
6 years, 4 months ago (2014-08-07 14:02:33 UTC) #1
Anders Johnsen
LGTM, ty.
6 years, 4 months ago (2014-08-08 06:08:13 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/445333004/diff/20001/sdk/lib/convert/latin1.dart File sdk/lib/convert/latin1.dart (right): https://codereview.chromium.org/445333004/diff/20001/sdk/lib/convert/latin1.dart#newcode147 sdk/lib/convert/latin1.dart:147: if (char < 0 || char > _LATIN1_MASK) { ...
6 years, 4 months ago (2014-08-08 07:29:01 UTC) #3
Lasse Reichstein Nielsen
6 years, 4 months ago (2014-08-08 07:59:55 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as 39022 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698