Skip to content

Add a way to extract the generated timestamp from Guids created with CreateVersion7() #114036

Closed Answered by tannergooding
QuantumToasted asked this question in Ideas
Discussion options

You must be logged in to vote

A lot of the perf differences comes from things like the .NET implementation ensuring that a cryptographically secure RNG is used for filling in the unused bits of the UUIDv7.

However, the relevant APIs for a user to build their own Guid creation functions that provide the raw bits all exist and there's no need to provide a custom data structure for that. They can freely generate whatever 128-bits they need and pass it into the new Guid(...) constructor.

There's been a handful of issues around UUIDv7 that have discussed these topics more in depth, the considerations the .NET Libraries needs to take into account, potential future extensibility options we could provide, and some sample data…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tannergooding
Comment options

Answer selected by danmoseley
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants