Hacker News new | ask | show | jobs
by JoshTriplett 1882 days ago
Processing a signal and mapping memory via that signal is less efficient than letting the kernel do it for you.

You'll get better performance by using userfaultfd.

1 comments

That too, but if you commit in big enough chunks, you amortize the signal handling overhead down to almost nothing.