Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
astrange
47 days ago
|
parent
|
context
|
favorite
| on:
Leveraging Zig's Allocators
So don't syscall. Darwin has a system similar to io_uring for this.
(But it also has a 16KB page size.)
josephg
47 days ago
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(But it also has a 16KB page size.)