TE
TechEcho
StartseiteTop 24hNeuesteBesteFragenZeigenJobs
GitHubTwitter
Startseite

TechEcho

Eine mit Next.js erstellte Technologie-Nachrichtenplattform, die globale Technologienachrichten und Diskussionen bietet.

GitHubTwitter

Startseite

StartseiteNeuesteBesteFragenZeigenJobs

Ressourcen

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. Alle Rechte vorbehalten.

Improving performance of rav1d video decoder

300 Punktevon todsacerdotivor 3 Tagen

17 comments

mmastracvor 3 Tagen
The associated issue for comparing two u16s is interesting.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;140167">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;140167</a>
评论 #44066028 未加载
评论 #44061906 未加载
评论 #44065911 未加载
renewiltordvor 3 Tagen
Oh this stuff is what’s prompting the ffmpeg Twitter account to make a stand against Rust <a href="https:&#x2F;&#x2F;x.com&#x2F;ffmpeg&#x2F;status&#x2F;1924137645988356437?s=46" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;ffmpeg&#x2F;status&#x2F;1924137645988356437?s=46</a>
评论 #44071382 未加载
评论 #44062997 未加载
评论 #44063150 未加载
nemothekidvor 3 Tagen
Intersting to see this article on the perfromance advantage of not having to zero buffers after this article 2 days ago: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44032680">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=44032680</a>
brookstvor 3 Tagen
Title undersells post; it’s actually 2.3% faster with two good optimizations.
评论 #44061586 未加载
robertknightvor 3 Tagen
Good post! The inefficient code for comparing pairs of 16-bit integers was an interesting find.
评论 #44061353 未加载
tialaramexvor 3 Tagen
All being equal codecs ought to be in WUFFS† rather than Rust, but I can well imagine that it&#x27;s a much bigger lift to take something as complicated as dav1d and write the analogous WUFFS than to clean up the c2rust translation, if you said a thousand times harder I&#x27;d have no trouble believing that. I just think it&#x27;s worth it for us as a civilisation.<p>† Or an equivalent special purpose language, but WUFFS is right there
评论 #44061961 未加载
mbeavittvor 3 Tagen
Haha I was just thinking to myself &quot;I wonder if anyone made any progress on that rav1d bounty yet?&quot;
infogulchvor 3 Tagen
You know it&#x27;s a good post when it starts with a funny meme. Seems related to the recent discussion: <i>$20K Bounty Offered for Optimizing Rust Code in Rav1d AV1 Decoder</i> (memorysafety.org) | 108 comments | <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43982238">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43982238</a>
评论 #44067232 未加载
评论 #44065083 未加载
lubesGordivor 3 Tagen
Honestly its a little surprising the first optimization he found was something fairly obvious just by using perf. I thought they had discussed the zeroing buffers issue in the first post? The second optimization was definitely more involved&#x2F;interesting but was still pointed at by perf. Don&#x27;t underestimate that tool!
评论 #44067686 未加载
评论 #44062673 未加载
smallpipevor 3 Tagen
This is really fun. Is there anything stopping rustc from performing the transmute trick ?<p>Edit: If I had read the next paragraph, I&#x27;d have learn about [1] before commenting<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;140167">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;140167</a>
Mr_Eri_Atlovvor 3 Tagen
AV1 continues to be the most fascinating development in media encoding.<p>AVG-SVT-PSY is particularly interesting to read up on as well.
jebarkervor 3 Tagen
Beautiful work and nice write-up. Profiling and optimization is absolutely my favorite part of software development.
sylwarevor 2 Tagen
I don&#x27;t understand this project. dav1d is 99% assembly (x86_64&#x2F;risc-v 64bits&#x2F;etc) with very little simple and plain C as coordinating code.
评论 #44077496 未加载
anon-3988vor 3 Tagen
Is skipping initialization of buffers a hard problem for compilers?
评论 #44063622 未加载
评论 #44062735 未加载
评论 #44062623 未加载
评论 #44068910 未加载
saagarjhavor 3 Tagen
I am very curious what you did to embed the profiler results into your blog post. Literally copy the HTML nodes?
评论 #44083081 未加载
mdfvor 3 Tagen
There&#x27;s something about real optimization stories that I find fascinating – particularly the detailed ones including step-by-step improvements and profiling to show how numbers got better. In some way, they are <i>satisfying</i> to read.<p>Nicholas Nethercote&#x27;s &quot;How to speed up the Rust compiler&quot; writings[1] fall into this same category for me.<p>Any others?<p>[1] <a href="https:&#x2F;&#x2F;nnethercote.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nnethercote.github.io&#x2F;</a>
评论 #44062243 未加载
评论 #44064811 未加载
评论 #44064519 未加载
评论 #44064856 未加载
评论 #44065073 未加载
IgorPartolavor 3 Tagen
AV1 is an amazing codec. I really hope it replaces proprietary codecs like h264 and h265. It has a similar, if not better, performance to h265 while being completely free. Currently on an Intel-based Macbook it is only supported in some browsers, however it seems that newer video cards from AMD, Nvidia, and Intel do include hardware decoders.
评论 #44063108 未加载
评论 #44062089 未加载
评论 #44062484 未加载
评论 #44063170 未加载
评论 #44065078 未加载