Ian Douglas Scott on Nostr: npub18z7cm…az82x npub1eqghr…6fncn You can derive `Copy` on a struct as well. That ...
npub18z7cmln2urg2293qfk7hduty9eklcsu80tyc4zw6tgc5ddthupjsmaz82x (npub18z7…z82x) npub1eqghrdelwyf920kghgwlmkjve6ptgnjy3jzkpfvxjmmjsh4em83sq6fncn (npub1eqg…fncn) You can derive `Copy` on a struct as well. That part doesn't require special trickery.
As I understand, fancy bit packing can sometimes improve performance, or sometimes make things a bit slower.
It won't really matter most of the time either way, but perhaps some software needs to record times a lot.
It apparently matters enough for Linux to have black magic to avoid normal system call overhead for `gettimeofday` and `clock_gettime`: https://www.man7.org/linux/man-pages/man7/vdso.7.html
As I understand, fancy bit packing can sometimes improve performance, or sometimes make things a bit slower.
It won't really matter most of the time either way, but perhaps some software needs to record times a lot.
It apparently matters enough for Linux to have black magic to avoid normal system call overhead for `gettimeofday` and `clock_gettime`: https://www.man7.org/linux/man-pages/man7/vdso.7.html