Bot releases are visible (Hide)
Added parser funcs for all formats and tests for them.
Published by bwmarrin over 5 years ago
With the help of https://github.com/nishaad78 this library will now do monotonic time calculations where supported.
See https://github.com/bwmarrin/snowflake/pull/18
Also, again with help from https://github.com/nishaad78 the library is a bit faster. We're still on target of 243ns/op for standard snowflake format (allowing us to max out the format) but when using a larger number of bits for sequence number you can get the performance down to around 66ns/op. See https://github.com/bwmarrin/snowflake/pull/19
Thanks a lot https://github.com/nishaad78 for the help!
Published by bwmarrin over 5 years ago
Main change here is in commit https://github.com/bwmarrin/snowflake/commit/20ab5dc6a45e1c57b60936ea1d26f9c72d22ade9
Please note that at this point there are several global (non exported) variables that have been deprecated and 3 functions. Be prepared to modify your code should you rely on any of these functions.