3 ms·
It's a shame they didn't finally drop big endian. Little endian won out and our newer protocols should reflect that for efficiency's sake.
by kstenerud 4y ago
It's a shame they didn't finally drop big endian. Little endian won out and our newer protocols should reflect that for efficiency's sake.
- zuzun 4y agoIt's necessary to keep them sortable at byte level.
- finnh 4y agoBut network byte order is big endian, so I can see arguments both ways (as it were)
- chrismorgan 4y agoBig-endianness is mandatory for opaque bytewise sorting (or lexicographic ordering in string form), which is a very desirable property of UUIDv6 and UUIDv7.
- wyager 4y agoI guarantee you that byte order swapping is not the limiting factor on the efficiency of any system involving UUIDs on the wire.
- amluto 4y agoNo, they should have tried to find a way to drop little endian. A cycle or two when generating UUIDs is irrelevant, and almost all UUID implementations, and most of the RFC 4122 text, are big-endian.