今日已更新 256 条资讯 | 累计 20726 条内容
关于我们

How 4 bytes of padding make array clearing 49% faster

/u/watman12 2026年06月22日 21:07 1 次阅读 来源:Reddit r/programming

I wrote about interesting amd64-specific quirk. If a large array is 4-byte misaligned, making it 8-byte aligned can make the array clearing ~49% faster (at least on my Intel machine). In the post I also touch on Intel's REP STOSQ implementation, ERMS and also on other optimizations related to array clearing. submitted by /u/watman12 [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文