News for hackers. Stuff that matters.
Re:Leveraging Zig's Allocators by astrange on Saturday June 15, 2024 @06:34PM (#40693205)
So don't syscall. Darwin has a system similar to io_uring for this.

(But it also has a 16KB page size.)

Re:Leveraging Zig's Allocators by josephg on Sunday June 16, 2024 @02:52AM (#40695172)
Probably still cause a page fault when the memory is re-accessed though. I suspect even using io_uring will still be a lot slower than bzero if you're just zeroing out 2 pages of memory. Zeroing memory is really fast.