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

Issue 15394003: Remove extra memcpys from AudioPullFifo. (Closed)

Created:
7 years, 7 months ago by DaleCurtis
Modified:
7 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Remove extra memcpys from AudioPullFifo. Due to AudioPullFifo always clearing the |fifo_| before reading another block from |read_cb_| we can actually remove the AudioFifo object in favor of a plain AudioBus. Speedup is ~17% over the old version per AudioConverter benchmark using --audio-converter-iterations=500000: Old: 430.04ms New: 355.44ms BUG=none TEST=media_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201662

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments. #

Patch Set 3 : Fix includes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -33 lines) Patch
M content/renderer/media/webrtc_local_audio_renderer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/base/audio_converter.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/audio_pull_fifo.h View 2 chunks +5 lines, -8 lines 0 comments Download
M media/base/audio_pull_fifo.cc View 1 1 chunk +32 lines, -25 lines 0 comments Download
M media/base/audio_pull_fifo_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
DaleCurtis
7 years, 7 months ago (2013-05-18 01:14:04 UTC) #1
no longer working on chromium
Thanks for the improvement. lgtm with one nit. https://codereview.chromium.org/15394003/diff/1/media/base/audio_pull_fifo.cc File media/base/audio_pull_fifo.cc (right): https://codereview.chromium.org/15394003/diff/1/media/base/audio_pull_fifo.cc#newcode52 media/base/audio_pull_fifo.cc:52: int ...
7 years, 7 months ago (2013-05-20 08:56:00 UTC) #2
DaleCurtis
https://codereview.chromium.org/15394003/diff/1/media/base/audio_pull_fifo.cc File media/base/audio_pull_fifo.cc (right): https://codereview.chromium.org/15394003/diff/1/media/base/audio_pull_fifo.cc#newcode52 media/base/audio_pull_fifo.cc:52: int frames = std::min(frames_to_provide, fifo_->frames() - fifo_index_); On 2013/05/20 ...
7 years, 7 months ago (2013-05-21 23:26:29 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/15394003/5001
7 years, 7 months ago (2013-05-21 23:29:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/15394003/19001
7 years, 7 months ago (2013-05-21 23:48:11 UTC) #5
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=42429
7 years, 7 months ago (2013-05-22 08:03:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/15394003/19001
7 years, 7 months ago (2013-05-22 17:37:34 UTC) #7
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 01:32:26 UTC) #8
Message was sent while issue was closed.
Change committed as 201662

Powered by Google App Engine
This is Rietveld 408576698