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

Issue 11615036: Reduce copy on QuotaFileIO::Write (Closed)

Created:
7 years, 11 months ago by tzik
Modified:
7 years, 11 months ago
Reviewers:
kinuko, brettw
CC:
chromium-reviews, darin-cc_chromium.org, Yusuke Sato
Visibility:
Public.

Description

Reduce copy on QuotaFileIO::Write. FileUtilProxy::Write makes a copy of the data before posting the write job, and it is one of the bottlenecks of the write operation on pepper. Though, we can safely omit the copy in QuotaFileIO::Write. BUG=168744 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177125

Patch Set 1 #

Total comments: 2

Patch Set 2 : byte_to_write 0 as non-error #

Patch Set 3 : crash fix on deletion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M webkit/plugins/ppapi/quota_file_io.cc View 1 2 5 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kinuko
lgtm, nice. (Please update BUG= line before asking owner's review)
7 years, 11 months ago (2013-01-04 10:28:59 UTC) #1
tzik
Thanks, Kinuko-san. Brett, could you take a look to this?
7 years, 11 months ago (2013-01-08 04:48:54 UTC) #2
brettw
https://codereview.chromium.org/11615036/diff/1/webkit/plugins/ppapi/quota_file_io.cc File webkit/plugins/ppapi/quota_file_io.cc (right): https://codereview.chromium.org/11615036/diff/1/webkit/plugins/ppapi/quota_file_io.cc#newcode131 webkit/plugins/ppapi/quota_file_io.cc:131: base::PlatformFileError error = bytes_written >= 0 ? What happens ...
7 years, 11 months ago (2013-01-09 20:17:10 UTC) #3
tzik
Thanks, updated. https://codereview.chromium.org/11615036/diff/1/webkit/plugins/ppapi/quota_file_io.cc File webkit/plugins/ppapi/quota_file_io.cc (right): https://codereview.chromium.org/11615036/diff/1/webkit/plugins/ppapi/quota_file_io.cc#newcode131 webkit/plugins/ppapi/quota_file_io.cc:131: base::PlatformFileError error = bytes_written >= 0 ? ...
7 years, 11 months ago (2013-01-10 04:02:36 UTC) #4
brettw
Just to double-check, what happens if a plugin says Write(<some buffer>, 0); (zero byte write). ...
7 years, 11 months ago (2013-01-14 06:02:24 UTC) #5
tzik
On 2013/01/14 06:02:24, brettw wrote: > Just to double-check, what happens if a plugin says ...
7 years, 11 months ago (2013-01-14 12:42:16 UTC) #6
tzik
On 2013/01/14 12:42:16, tzik wrote: > On 2013/01/14 06:02:24, brettw wrote: > > Just to ...
7 years, 11 months ago (2013-01-15 05:38:27 UTC) #7
brettw
LGTM
7 years, 11 months ago (2013-01-16 05:38:31 UTC) #8
tzik
On 2013/01/16 05:38:31, brettw wrote: > LGTM Thanks!
7 years, 11 months ago (2013-01-16 07:05:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/11615036/17002
7 years, 11 months ago (2013-01-16 07:05:21 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 10:36:56 UTC) #11
Message was sent while issue was closed.
Change committed as 177125

Powered by Google App Engine
This is Rietveld 408576698