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

Issue 15866003: Teach WebString about 8 bit strings (Closed)

Created:
7 years, 7 months ago by abarth-chromium
Modified:
7 years, 6 months ago
CC:
blink-reviews, kinuko, jeez, eae+blinkwatch, eseidel
Visibility:
Public.

Description

Teach WebString about 8 bit strings Previously we always upconverted strings backing WebString to have both a 16 bit and an 8 bit buffer whenever we converted a WebString to a string16. There's no reason to store a shadow 16 bit buffer in the String for this use case. It's just as fast to copy out an 8 bit buffer into a string16 as it is to copy out a 16 bit buffer. This CL removes the vast majority of the string up converstions for Mobile Gmail. In a future CL, we should remove WebString::data() to prevent Chromium code from accidentially upconverting the underlying String. R=brettw@chromium.org, eseidel@chromium.org, jamesr@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151535

Patch Set 1 #

Patch Set 2 : Better std::string pattern #

Total comments: 5

Patch Set 3 : Now with smaller binary size #

Patch Set 4 : Merge to trunk #

Patch Set 5 : Update to base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -6 lines) Patch
M Source/core/platform/chromium/support/WebString.cpp View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M public/platform/WebCommon.h View 1 chunk +3 lines, -0 lines 0 comments Download
M public/platform/WebString.h View 1 2 3 4 5 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
abarth-chromium
I need to benchmark it, but I suspect this saves around 50 kB of memory ...
7 years, 7 months ago (2013-05-24 01:54:41 UTC) #1
abarth-chromium
7 years, 7 months ago (2013-05-24 05:58:51 UTC) #2
eseidel
lgtm, but I don't think I haz teh power.
7 years, 7 months ago (2013-05-24 06:06:09 UTC) #3
jamesr
lgtm You probably want a V8 person to check over that isolate change, I don't ...
7 years, 7 months ago (2013-05-24 06:11:32 UTC) #4
darin (slow to review)
https://codereview.chromium.org/15866003/diff/3001/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp File Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp (right): https://codereview.chromium.org/15866003/diff/3001/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp#newcode63 Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp:63: newInfo.platformPath.assign(String(info.platformPath)); nit: there's an implicit casting operator to WTF::String ...
7 years, 7 months ago (2013-05-24 06:12:52 UTC) #5
abarth-chromium
https://codereview.chromium.org/15866003/diff/3001/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp File Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp (right): https://codereview.chromium.org/15866003/diff/3001/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp#newcode63 Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp:63: newInfo.platformPath.assign(String(info.platformPath)); On 2013/05/24 06:12:53, darin wrote: > nit: there's ...
7 years, 7 months ago (2013-05-24 06:17:44 UTC) #6
abarth-chromium
On 2013/05/24 06:11:32, jamesr wrote: > You probably want a V8 person to check over ...
7 years, 7 months ago (2013-05-24 06:18:26 UTC) #7
abarth-chromium
7 years, 7 months ago (2013-05-24 06:18:31 UTC) #8
abarth-chromium
Darin was worried about binary size. The old approach added 42 kB to libcontent.so. This ...
7 years, 7 months ago (2013-05-24 07:21:46 UTC) #9
abarth-chromium
The base side of this CL is in https://codereview.chromium.org/15720004
7 years, 7 months ago (2013-05-24 07:29:14 UTC) #10
abarth-chromium
+brettw: Darin thought we might benefit from your taking a look at this CL (and ...
7 years, 7 months ago (2013-05-24 07:34:35 UTC) #11
brettw
Do we intend to use the new base function elsewhere? It seems kind of specific ...
7 years, 7 months ago (2013-05-24 14:38:37 UTC) #12
abarth-chromium
On 2013/05/24 14:38:37, brettw wrote: > Do we intend to use the new base function ...
7 years, 7 months ago (2013-05-24 16:23:34 UTC) #13
brettw
LGTM for this once we resolve the other one.
7 years, 6 months ago (2013-05-28 18:19:02 UTC) #14
abarth-chromium
Committed patchset #4 manually as r151339 (presubmit successful).
7 years, 6 months ago (2013-05-29 01:02:37 UTC) #15
abarth-chromium
This got rolled out. Not everyone who depends on WebKit links in webkit_glue. In particular, ...
7 years, 6 months ago (2013-05-29 01:21:58 UTC) #16
brettw
On 2013/05/29 01:21:58, abarth wrote: > This got rolled out. Not everyone who depends on ...
7 years, 6 months ago (2013-05-29 03:11:59 UTC) #17
abarth-chromium
Committed patchset #5 manually as r151425 (presubmit successful).
7 years, 6 months ago (2013-05-30 00:14:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/15866003/25001
7 years, 6 months ago (2013-05-31 08:32:38 UTC) #19
commit-bot: I haz the power
7 years, 6 months ago (2013-05-31 08:32:59 UTC) #20
Message was sent while issue was closed.
Change committed as 151535

Powered by Google App Engine
This is Rietveld 408576698