logoalt Hacker News

mort96yesterday at 7:10 AM1 replyview on HN

Passing pointers is not significantly faster than passing offsets into a shared memory pool.


Replies

menaerusyesterday at 2:31 PM

Sorry, what? Passing a pointer is a matter of wrapping the value into the CPU register. OTOH passing an offset into a shared memory is a write to main memory so several magnitudes slower.