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

Issue 12051055: 2nd try: FileAPI: Split recursive remove into multiple tasks. (Closed)

Created:
7 years, 11 months ago by kinuko
Modified:
7 years, 10 months ago
Reviewers:
tzik
CC:
chromium-reviews, tzik+watch_chromium.org, kinuko+watch, darin-cc_chromium.org
Visibility:
Public.

Description

2nd try: FileAPI: Split recursive remove into multiple tasks. Original review page: https://codereview.chromium.org/12018017/ While this change makes each recursive delete run slower, concurrent jobs can run without waiting for the entire recursive job to finish. Recursive remove end-to-end (200 files, 120 dirs, 4-level tree, total 100MB): Before this change: Ave: 72.94 msec, Stddev: 3.571 msec After this change: Ave:129.54 msec, Stddev: 25.368 msec It takes 1.76 times slower than before by average (we can probably do more optimization as this implementation doesn't care much about it), while another concurrent file task called immediately after the delete could finish in 1-5 msec (while back then it needed to wait for 70-80 msec). BUG=146215 TEST=content_unittests:.*File.*,content_browsertests:FileSystemLayoutTests.OpRemove Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179102

Patch Set 1 #

Patch Set 2 : leak fix #

Patch Set 3 : another option #

Patch Set 4 : more leak fixes #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -52 lines) Patch
M webkit/fileapi/file_system_file_util_proxy.h View 1 2 3 4 1 chunk +9 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_file_util_proxy.cc View 1 chunk +16 lines, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.h View 1 2 3 7 chunks +60 lines, -0 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.cc View 1 2 3 26 chunks +88 lines, -35 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_unittest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util.cc View 1 chunk +2 lines, -4 lines 0 comments Download
A webkit/fileapi/remove_operation_delegate.h View 2 1 chunk +64 lines, -0 lines 0 comments Download
A webkit/fileapi/remove_operation_delegate.cc View 2 1 chunk +166 lines, -0 lines 0 comments Download
M webkit/fileapi/syncable/syncable_file_system_operation.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M webkit/fileapi/syncable/syncable_file_system_operation.cc View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kinuko
Sorry, can you take another look.. Diff between patch set 1 and 2 is the ...
7 years, 11 months ago (2013-01-24 10:39:07 UTC) #1
tzik
lgtm
7 years, 11 months ago (2013-01-24 10:41:16 UTC) #2
kinuko
Fixed more leaks and bots look ok now (valgrind errors look irrelevant). Operation memory management ...
7 years, 11 months ago (2013-01-25 03:32:20 UTC) #3
kinuko
Friendly ping.
7 years, 11 months ago (2013-01-28 01:50:22 UTC) #4
tzik
lgtm
7 years, 11 months ago (2013-01-28 02:38:10 UTC) #5
kinuko
Thanks! On Mon, Jan 28, 2013 at 11:38 AM, <tzik@chromium.org> wrote: > lgtm > > ...
7 years, 11 months ago (2013-01-28 02:44:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/12051055/18002
7 years, 11 months ago (2013-01-28 03:29:26 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-01-28 05:10:52 UTC) #8
Message was sent while issue was closed.
Change committed as 179102

Powered by Google App Engine
This is Rietveld 408576698