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

Issue 2456153002: Audio player: Throttle concurrent loading of audio metadata. (Closed)

Created:
4 years, 1 month ago by fukino
Modified:
4 years, 1 month ago
Reviewers:
oka
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Audio player: Throttle concurrent loading of audio metadata. When the audio player is opened, it starts loading audio metadata of all files in the same directory. This can result in running out of the limit for open file descriptors. This CL throttles the metadata loading, limiting the number of open files up to 25. BUG=654769 TEST=manually tested on a folder which has 1500 mp3 files (took 30 seconds to load all metadata on chell). CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f0c44416f9a7bd9328b93456f7f88f5c26461269 Cr-Commit-Position: refs/heads/master@{#428329}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M ui/file_manager/audio_player/js/audio_player.js View 1 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
fukino
4 years, 1 month ago (2016-10-27 21:28:12 UTC) #3
oka
https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js File ui/file_manager/audio_player/js/audio_player.js (right): https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js#newcode54 ui/file_manager/audio_player/js/audio_player.js:54: this.loadMetadataQueue_ = new AsyncUtil.ConcurrentQueue(25); Could you explain why 25 ...
4 years, 1 month ago (2016-10-28 07:10:18 UTC) #4
oka
https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js File ui/file_manager/audio_player/js/audio_player.js (right): https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js#newcode230 ui/file_manager/audio_player/js/audio_player.js:230: }.bind(this, track)); I wonder if binding |track| is needed. ...
4 years, 1 month ago (2016-10-28 07:13:43 UTC) #5
fukino
https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js File ui/file_manager/audio_player/js/audio_player.js (right): https://codereview.chromium.org/2456153002/diff/1/ui/file_manager/audio_player/js/audio_player.js#newcode54 ui/file_manager/audio_player/js/audio_player.js:54: this.loadMetadataQueue_ = new AsyncUtil.ConcurrentQueue(25); On 2016/10/28 07:10:18, oka wrote: ...
4 years, 1 month ago (2016-10-28 09:31:51 UTC) #6
oka
lgtm
4 years, 1 month ago (2016-10-28 09:39:48 UTC) #7
oka
On 2016/10/28 09:39:48, oka wrote: > lgtm Could you add how long it took on ...
4 years, 1 month ago (2016-10-28 09:40:40 UTC) #8
fukino
Thanks! > Could you add how long it took on TEST? Done
4 years, 1 month ago (2016-10-28 10:02:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456153002/20001
4 years, 1 month ago (2016-10-28 10:02:46 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-28 10:38:31 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 10:40:30 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f0c44416f9a7bd9328b93456f7f88f5c26461269
Cr-Commit-Position: refs/heads/master@{#428329}

Powered by Google App Engine
This is Rietveld 408576698