WebRTC Hacks
Read post

Vector Vibing to speed up Opus encode by 20%

Opus audio encoding in desktop Chromium got 20-23% faster for speech by enabling AVX2 vectorization in libopus. The AVX2 kernels had been present in the codebase since the 1.5.2 roll in April 2024 but were never wired into the build — a 30-line BUILD.gn change fixed that. Benchmarks show speech encode drops 17-23% while music barely moves (~2%), because two of the three AVX2 kernels live in the SILK encoder used for speech. Notably, 96% of the SILK win comes from a single function (silk_NSQ_del_dec), not the one with the biggest per-call gain. The author also highlights how AI assistance (Claude) made the benchmarking and attribution work cheap enough to actually do properly. The fix landed in Chromium 152, and the same vectorization kernels in libopus are available for server-side Opus encoding too.

    #chromium#webrtc
Jul 02•7m read time•From webrtchacks.com
Post cover image
Table of contents
The change itself is the boring partThe part I used to not have a week forThe bar moved… again
19.2K Impressions
WebRTC Hacks's image
WebRTC Hacks

WebRTCHacks' platform is a resource for developers and enthusiasts interested in WebRTC (Web Real-Ti...

31 Followers

•

96 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard