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

Issue 18566009: Optimize loop condition for SincResampler. (Closed)

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

Description

Optimize loop condition for SincResampler. Improves performance by ~2% - 3% on all tested platforms. Avoids a 20% performance hit with clang! Which seems like a bug, so I filed: http://llvm.org/bugs/show_bug.cgi?id=16578 Results measured by: media_unittests --gtest_filter=AudioConverterTest.ConvertBenchmark \ --audio-converter-iterations=500000 Switching from size_t to int is a minor performance win on all platforms < ~1% and reduces code gen by a few hundred bytes with clang, so why not. BUG=https://code.google.com/p/webrtc/issues/detail?id=2041 TEST=media_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211538

Patch Set 1 : Cleanup. #

Total comments: 12

Patch Set 2 : Use for(). #

Patch Set 3 : Comments. const! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -13 lines) Patch
M media/base/sinc_resampler.h View 2 chunks +4 lines, -4 lines 0 comments Download
M media/base/sinc_resampler.cc View 1 2 6 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
DaleCurtis
7 years, 5 months ago (2013-07-09 20:52:17 UTC) #1
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc File media/base/sinc_resampler.cc (right): https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc#newcode269 media/base/sinc_resampler.cc:269: while (virtual_source_idx_ < block_size_) { what happens if you ...
7 years, 5 months ago (2013-07-09 23:20:08 UTC) #2
DaleCurtis
https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc File media/base/sinc_resampler.cc (right): https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc#newcode269 media/base/sinc_resampler.cc:269: while (virtual_source_idx_ < block_size_) { On 2013/07/09 23:20:08, Ami ...
7 years, 5 months ago (2013-07-10 21:06:31 UTC) #3
Ami GONE FROM CHROMIUM
LGTM % maybe unstupid idea https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc File media/base/sinc_resampler.cc (right): https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc#newcode269 media/base/sinc_resampler.cc:269: while (virtual_source_idx_ < block_size_) ...
7 years, 5 months ago (2013-07-10 21:18:00 UTC) #4
DaleCurtis
https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc File media/base/sinc_resampler.cc (right): https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc#newcode276 media/base/sinc_resampler.cc:276: #endif On 2013/07/10 21:18:00, Ami Fischman wrote: > Perverted ...
7 years, 5 months ago (2013-07-10 23:01:34 UTC) #5
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/18566009/diff/2001/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/18566009/diff/2001/media/media.gyp#newcode455 media/media.gyp:455: ['target_arch=="arm" and arm_version>=7 and arm_neon==1', { On 2013/07/10 23:01:34, ...
7 years, 5 months ago (2013-07-10 23:04:41 UTC) #6
DaleCurtis
https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc File media/base/sinc_resampler.cc (right): https://codereview.chromium.org/18566009/diff/2001/media/base/sinc_resampler.cc#newcode276 media/base/sinc_resampler.cc:276: #endif On 2013/07/10 23:01:34, DaleCurtis wrote: > On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 21:04:34 UTC) #7
Ami GONE FROM CHROMIUM
LGTM %: - update CL description - add comment above for loop that this is ...
7 years, 5 months ago (2013-07-11 21:16:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/18566009/2005
7 years, 5 months ago (2013-07-13 00:04:47 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-13 04:21:27 UTC) #10
Message was sent while issue was closed.
Change committed as 211538

Powered by Google App Engine
This is Rietveld 408576698