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

Issue 24359002: Make smi.toString() do its work faster using native string helpers. (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, kasperl
Visibility:
Public.

Description

Make smi.toString() do its work faster using native string helpers. BUG= http://dartbug.com/13450 R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=27808

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use intptr_t instead of int64_t. #

Patch Set 3 : Did optimization entirely in dart, using native string building helpers. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -18 lines) Patch
M runtime/lib/integers.dart View 1 2 1 chunk +25 lines, -18 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-23 11:23:37 UTC) #1
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-23 11:23:37 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/24359002/diff/1/runtime/lib/integers.cc File runtime/lib/integers.cc (right): https://codereview.chromium.org/24359002/diff/1/runtime/lib/integers.cc#newcode352 runtime/lib/integers.cc:352: // Maximal number of digits of a 63 bit ...
7 years, 3 months ago (2013-09-23 11:25:18 UTC) #3
kasperl
As we talked about offline, I'd suggest using a statically allocated buffer of some sort ...
7 years, 3 months ago (2013-09-23 13:13:30 UTC) #4
Lasse Reichstein Nielsen
PTAL
7 years, 3 months ago (2013-09-24 11:03:53 UTC) #5
Florian Schneider
Lgtm. The issue description is not accurate anymore since you're using Dart instead of C++ ...
7 years, 3 months ago (2013-09-24 11:12:34 UTC) #6
Lasse Reichstein Nielsen
Good point, description changed.
7 years, 3 months ago (2013-09-24 11:20:03 UTC) #7
Lasse Reichstein Nielsen
Committed patchset #3 manually as r27808 (presubmit successful).
7 years, 3 months ago (2013-09-24 11:21:22 UTC) #8
kasperl
https://codereview.chromium.org/24359002/diff/10001/runtime/lib/integers.dart File runtime/lib/integers.dart (right): https://codereview.chromium.org/24359002/diff/10001/runtime/lib/integers.dart#newcode241 runtime/lib/integers.dart:241: if (this < 0) { Use val < 0?
7 years, 3 months ago (2013-09-24 11:22:09 UTC) #9
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-24 19:48:48 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/24359002/diff/10001/runtime/lib/integers.dart
File runtime/lib/integers.dart (right):

https://codereview.chromium.org/24359002/diff/10001/runtime/lib/integers.dart...
runtime/lib/integers.dart:241: if (this < 0) {
good point.

Powered by Google App Engine
This is Rietveld 408576698