On 2026-03-19 11:33, Lasse Collin wrote:
The memcpy method feels simpler and
is more portable too.

Yes, although switching to may_alias+aligned would likely improve performance on GCC 3.3 (2003, when may_alias was introduced) through just before GCC 4.7 (2014, when __builtin_assume_alignment was introduced), it's doubtful that it'd be worth the hassle to do the switch now, given the greater complexity / diciness of such a switch along with its relative ineffectiveness today given that no currently-supported GNU/Linux distros have GCCs that old, as far as I know.

Reply via email to