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

Unified Diff: runtime/lib/math_patch.dart

Issue 11419194: Improve performance of String.split for 1 and 0 character results. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/string_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math_patch.dart
===================================================================
--- runtime/lib/math_patch.dart (revision 15427)
+++ runtime/lib/math_patch.dart (working copy)
@@ -51,12 +51,11 @@
class _Random implements Random {
// Internal state of the random number generator.
- var _state;
+ final _state = new List(2);
static const kSTATE_LO = 0;
static const kSTATE_HI = 1;
_Random._internal(state) {
- _state = new List(2);
_state[kSTATE_LO] = state & _MASK_32;
_state[kSTATE_HI] = state >> 32;
}
« no previous file with comments | « no previous file | runtime/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698