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

Issue 398813002: Performance tweak on int.parse. (Closed)

Created:
6 years, 5 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch
Visibility:
Public.

Description

Performance tweak on int.parse. Slower for strings with trailing, but no leading, whitespace, but significantly faster for strings with no whitespace, which is presumed to be the most common case. R=floitsch@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=38848

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments. #

Patch Set 3 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -48 lines) Patch
M runtime/lib/integers_patch.dart View 1 2 2 chunks +24 lines, -35 lines 0 comments Download
M runtime/lib/string_patch.dart View 1 2 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
6 years, 5 months ago (2014-07-16 13:39:41 UTC) #1
Lasse Reichstein Nielsen
6 years, 5 months ago (2014-07-17 11:06:10 UTC) #2
floitsch
LGTM but wait for VM. https://codereview.chromium.org/398813002/diff/1/runtime/lib/integers_patch.dart File runtime/lib/integers_patch.dart (right): https://codereview.chromium.org/398813002/diff/1/runtime/lib/integers_patch.dart#newcode14 runtime/lib/integers_patch.dart:14: var ix = first; ...
6 years, 5 months ago (2014-07-17 11:35:06 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/398813002/diff/1/runtime/lib/integers_patch.dart File runtime/lib/integers_patch.dart (right): https://codereview.chromium.org/398813002/diff/1/runtime/lib/integers_patch.dart#newcode16 runtime/lib/integers_patch.dart:16: var c = str.codeUnitAt(ix); VM patch files generally don't ...
6 years, 5 months ago (2014-07-18 07:43:10 UTC) #4
srdjan
Could you please quantify how much do we gain and how much do we loose. ...
6 years, 5 months ago (2014-07-18 21:40:35 UTC) #5
Lasse Reichstein Nielsen
On 2014/07/18 21:40:35, srdjan wrote: > Could you please quantify how much do we gain ...
6 years, 5 months ago (2014-07-18 23:09:07 UTC) #6
srdjan
lgtm
6 years, 5 months ago (2014-07-18 23:30:58 UTC) #7
Lasse Reichstein Nielsen
6 years, 4 months ago (2014-08-04 07:57:00 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as 38848 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698