News for hackers. Stuff that matters.
Re:GCC always assumes aligned pointer accesses by saagarjha on Sunday August 20, 2023 @07:56PM (#37204082)
> Even on x86 where it's supported, you want to avoid doing unaligned reads at all costs because they're up to 2x slower than aligned accesses.

This is generally not true.

Re:GCC always assumes aligned pointer accesses by von_lohengramm on Sunday August 20, 2023 @10:16PM (#37204797)
It is generally true because "up to" includes the same speed. However, unaligned memory can significantly impact caching.