What is Nostr?
Ian Douglas Scott /
npub1rxd…dk29
2024-01-23 23:35:39
in reply to nevent1q…zrpt

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
Author Public Key
npub1rxd3zvvd5dg4y4yx74z7w80lpdxz72u2y2aktez2ycw6yx52yjyqk5dk29