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

Issue 11339027: - Avoid going into BigInteger domain for most of the Random state calculation. (Closed)

Created:
8 years, 1 month ago by Ivan Posva
Modified:
8 years, 1 month ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Avoid going into BigInteger domain for most of the Random state calculation. - Makes it much easier to intrinsify the operation. Committed: https://code.google.com/p/dart/source/detail?r=14235

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M lib/math_patch.dart View 2 chunks +9 lines, -6 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Ivan Posva
8 years, 1 month ago (2012-10-30 00:12:46 UTC) #1
srdjan
8 years, 1 month ago (2012-10-30 00:16:57 UTC) #2
LGTM

https://codereview.chromium.org/11339027/diff/1/lib/math_patch.dart
File lib/math_patch.dart (right):

https://codereview.chromium.org/11339027/diff/1/lib/math_patch.dart#newcode39
lib/math_patch.dart:39: _Random._internal(state)
you can type this int.

Powered by Google App Engine
This is Rietveld 408576698