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

Issue 2670643007: Make AudioVector::operator[] inline and modify index calculation (Closed)

Created:
3 years, 10 months ago by hlundin-webrtc
Modified:
3 years, 10 months ago
Reviewers:
the sun, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, peah-webrtc, minyue-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make AudioVector::operator[] inline and modify the index calculation to avoid the modulo operation. BUG=webrtc:7159 Review-Url: https://codereview.webrtc.org/2670643007 Cr-Commit-Position: refs/heads/master@{#16627} Committed: https://chromium.googlesource.com/external/webrtc/+/280eb224e2e0630ec94a6072777d58354357ee67

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rewrite index calculation #

Total comments: 4

Patch Set 3 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -10 lines) Patch
M webrtc/modules/audio_coding/neteq/audio_vector.h View 1 2 2 chunks +21 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/audio_vector.cc View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
hlundin-webrtc
PTAL
3 years, 10 months ago (2017-02-02 16:13:24 UTC) #2
the sun
https://codereview.webrtc.org/2670643007/diff/1/webrtc/modules/audio_coding/neteq/audio_vector.h File webrtc/modules/audio_coding/neteq/audio_vector.h (right): https://codereview.webrtc.org/2670643007/diff/1/webrtc/modules/audio_coding/neteq/audio_vector.h#newcode114 webrtc/modules/audio_coding/neteq/audio_vector.h:114: return array_[(begin_index_ + index) % capacity_]; Integer division is ...
3 years, 10 months ago (2017-02-02 19:29:55 UTC) #3
kwiberg-webrtc
Seeing as this is an attempt at optimization: have you run any benchmarks? https://codereview.webrtc.org/2670643007/diff/1/webrtc/modules/audio_coding/neteq/audio_vector.h File ...
3 years, 10 months ago (2017-02-07 14:04:15 UTC) #5
hlundin-webrtc
On 2017/02/07 14:04:15, kwiberg-webrtc wrote: > Seeing as this is an attempt at optimization: have ...
3 years, 10 months ago (2017-02-09 14:34:03 UTC) #6
hlundin-webrtc
I took a stab at getting rid of the modulo operator. To profile the work, ...
3 years, 10 months ago (2017-02-13 14:21:13 UTC) #8
kwiberg-webrtc
Good speedup! https://codereview.webrtc.org/2670643007/diff/20001/webrtc/modules/audio_coding/neteq/audio_vector.h File webrtc/modules/audio_coding/neteq/audio_vector.h (right): https://codereview.webrtc.org/2670643007/diff/20001/webrtc/modules/audio_coding/neteq/audio_vector.h#newcode114 webrtc/modules/audio_coding/neteq/audio_vector.h:114: inline const int16_t& operator[](size_t index) const { ...
3 years, 10 months ago (2017-02-13 14:44:08 UTC) #9
the sun
On 2017/02/13 14:21:13, hlundin-webrtc wrote: > I took a stab at getting rid of the ...
3 years, 10 months ago (2017-02-13 20:01:28 UTC) #10
hlundin-webrtc
New patch set uploaded. I could not see any change in performance versus the previous ...
3 years, 10 months ago (2017-02-14 08:49:28 UTC) #11
the sun
lgtm for this change
3 years, 10 months ago (2017-02-14 08:52:12 UTC) #12
kwiberg-webrtc
lgtm
3 years, 10 months ago (2017-02-14 12:59:31 UTC) #13
hlundin-webrtc
On 2017/02/14 12:59:31, kwiberg-webrtc wrote: > lgtm Thanks. FYI: The difference between the old and ...
3 years, 10 months ago (2017-02-14 13:04:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2670643007/40001
3 years, 10 months ago (2017-02-14 13:04:49 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/13458)
3 years, 10 months ago (2017-02-14 13:10:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2670643007/40001
3 years, 10 months ago (2017-02-14 14:38:58 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/21150)
3 years, 10 months ago (2017-02-14 14:54:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2670643007/40001
3 years, 10 months ago (2017-02-15 10:38:30 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 10:53:10 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/280eb224e2e0630ec94a60727...

Powered by Google App Engine
This is Rietveld 408576698