Why Nostr? What is Njump?
2024-06-21 18:30:03

Inertia (🇮🇳) on Nostr: Is there any difference between passing a structure of 3 ints by copy vs just passing ...

Is there any difference between passing a structure of 3 ints by copy vs just passing 3 ints individually into a method?

From the amount of bytes copied obviously not. Just wondering if there are some compiler optimisations that get harder/easier when packing values together vs leaving them separate.

Func(int a, int b, int c)
Vs
Func(vector3 v)

Vector3{ int a, int b, int c }
Author Public Key
npub1uxqj0ndkh3y3zv7x8g20css6j2gs98905gj97u99w607h0aw94cq5skg4n