Why Nostr? What is Njump?
2023-08-31 03:00:52

Per Vognsen on Nostr: While this has nice ergonomics, I take exception to the idea that it's zero-copy: As ...

While this has nice ergonomics, I take exception to the idea that it's zero-copy: https://manishearth.github.io/blog/2022/08/03/zero-copy-3-so-zero-its-dot-dot-dot-negative/

As soon as your types have references (e.g. the Person struct example), the operating system loader has to do pointer fix-ups on load. And because this usually happens with the additional overhead of copy-on-write soft page faults, I could see this being significantly slower than equivalent non-copy-on-write pointer fix-up code. I'd have to do proper testing.
Author Public Key
npub152ta9mm2x6nk4ffyrn7ycz444vf7x743t24yddyd40vvcwkw39wqv3v7uc