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

Issue 211283003: More efficient _OneByteString.toLowerCase(). (Closed)

Created:
6 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 9 months ago
Reviewers:
srdjan, sra1
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

More efficient _OneByteString.toLowerCase().

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M runtime/lib/string_patch.dart View 1 chunk +55 lines, -0 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
https://codereview.chromium.org/211283003/diff/1/runtime/lib/string_patch.dart File runtime/lib/string_patch.dart (right): https://codereview.chromium.org/211283003/diff/1/runtime/lib/string_patch.dart#newcode810 runtime/lib/string_patch.dart:810: 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, ff ...
6 years, 9 months ago (2014-03-25 16:35:37 UTC) #1
srdjan
This looks faster, is it visible in any of the benchmarks that we are tracking? ...
6 years, 9 months ago (2014-03-25 17:33:16 UTC) #2
Lasse Reichstein Nielsen
Haven't run anything but my own micro-benchmark yet. I'd compare it to Anders' version tomorrow, ...
6 years, 9 months ago (2014-03-25 19:04:27 UTC) #3
sra1
6 years, 9 months ago (2014-03-25 19:07:14 UTC) #4
https://codereview.chromium.org/211283003/diff/1/runtime/lib/string_patch.dart
File runtime/lib/string_patch.dart (right):

https://codereview.chromium.org/211283003/diff/1/runtime/lib/string_patch.dar...
runtime/lib/string_patch.dart:833: return result;
Are single character strings canonicalized (like in V8)?
If so,
   if (this.length == 1) return result[0];

I can't tell if line 233 is for canonicalization or due to a belief that using
substring with length 1 is common.

Powered by Google App Engine
This is Rietveld 408576698