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

Issue 1409053007: More optimization of _uriEncode. (Closed)

Created:
5 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
5 years, 1 month ago
Reviewers:
sra1
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

More optimization of _uriEncode. Avoid doing the encoding of the original string for ASCII/LATIN1/UTF-8. For mostly ASCII strings, the encoding is just a copying overhead.

Patch Set 1 #

Patch Set 2 : Call directly to specialized UTF-8 version. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -21 lines) Patch
M sdk/lib/convert/ascii.dart View 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/core/core.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/uri.dart View 1 7 chunks +201 lines, -19 lines 3 comments Download

Messages

Total messages: 3 (1 generated)
sra1
I can't patch and run this. I suspect that the extra code will make the ...
5 years, 1 month ago (2015-11-03 17:28:42 UTC) #2
Lasse Reichstein Nielsen
5 years, 1 month ago (2015-11-03 18:04:08 UTC) #3
https://codereview.chromium.org/1409053007/diff/20001/sdk/lib/core/uri.dart
File sdk/lib/core/uri.dart (right):

https://codereview.chromium.org/1409053007/diff/20001/sdk/lib/core/uri.dart#n...
sdk/lib/core/uri.dart:2298: result[j] = text.codeUnitAt(j);
Duh, should be writeCharCode. 
Obviously needs more tests.

Powered by Google App Engine
This is Rietveld 408576698