On 7/22/20 3:55 PM, Bruno Haible wrote:
Of course this performance issue is mostly just for MS-Windows, as other major
current platforms already have aligned_alloc or rough equivalent.
No, it's not only Windows. It's
- macOS
- Minix
- native Windows
macOS has had posix_memalign since Mac OS X 10.6 (2009) - at least, that's
what's in Apple's documentation
<https://opensource.apple.com/source/Libc/Libc-583/gen/posix_memalign.3.auto.html>.
We needn't worry about older OS releases, as Apple doesn't support them.
Minix is moribund (its last release was 2014) and is no longer a significant
porting target.
So the only significant issue for aligned_alloc is performance on native
Windows. And my guess is that we can make it perform well-enough there, for many
applications (including your application I think).