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

Issue 473673004: Avoid UTF-8 decoding in num.toString. (Closed)

Created:
6 years, 4 months ago by koda
Modified:
6 years, 4 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Avoid UTF-8 decoding in num.toString. 4-7% speedup on SplayHarder. Introduce _Num class to make Dart and VM hierarchies match and enable sharing code between integers and doubles. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=39383

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -3 lines) Patch
M runtime/lib/corelib_sources.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/lib/double.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/integers.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A runtime/lib/num.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/lib/num.dart View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/lib/object.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.h View 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
koda
6 years, 4 months ago (2014-08-19 16:59:34 UTC) #1
koda
Uploaded new version with _Num class. Running on go/darta now to ensure it's not slower. ...
6 years, 4 months ago (2014-08-19 19:39:57 UTC) #2
Ivan Posva
LGTM with the class hierarchy issues addressed. -Ivan https://codereview.chromium.org/473673004/diff/80001/runtime/lib/num.cc File runtime/lib/num.cc (right): https://codereview.chromium.org/473673004/diff/80001/runtime/lib/num.cc#newcode12 runtime/lib/num.cc:12: DEFINE_NATIVE_ENTRY(num_toString, ...
6 years, 4 months ago (2014-08-19 20:37:18 UTC) #3
koda
https://codereview.chromium.org/473673004/diff/80001/runtime/lib/num.cc File runtime/lib/num.cc (right): https://codereview.chromium.org/473673004/diff/80001/runtime/lib/num.cc#newcode12 runtime/lib/num.cc:12: DEFINE_NATIVE_ENTRY(num_toString, 1) { On 2014/08/19 20:37:18, Ivan Posva wrote: ...
6 years, 4 months ago (2014-08-19 21:15:18 UTC) #4
koda
6 years, 4 months ago (2014-08-19 21:15:46 UTC) #5
Message was sent while issue was closed.
Committed patchset #7 manually as r39383 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698