Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSI library expanded to include support for large arbitrary values via the big.Int library #451

Merged
merged 9 commits into from
Oct 23, 2024

Conversation

guymolinari
Copy link
Contributor

There is no fundamental reason why the BSI library cannot support values exceeding 64 bits. Why is this necessary? It would now be possible to store values like UUID and 96 bit timestamps, as well as advanced string encodings in a BSI.

The BSI library has been modified to preserve the existing int64 interface and has been expanded to leverage the golang big.Int math library. The original int64 methods now convert incoming values to *big.Int (and vice versa, etc).

Additional test coverage has been added and some of the original tests have been expanded.

Performance does not seem to be substantially impacted.

go.mod Outdated Show resolved Hide resolved
@lemire
Copy link
Member

lemire commented Oct 23, 2024

@guymolinari Can you have a look at our failing tests?

@guymolinari
Copy link
Contributor Author

guymolinari commented Oct 23, 2024 via email

@guymolinari
Copy link
Contributor Author

Daniel. Would it be possible to update the environment to use at least go 1.15?

@lemire
Copy link
Member

lemire commented Oct 23, 2024

Daniel. Would it be possible to update the environment to use at least go 1.15?

Absolutely. Maybe it would be cleaner to do it with a separate PR.

We could push the required version up, and then handle this PR.

@guymolinari
Copy link
Contributor Author

Daniel. Missed your last message. I think I have it sorted out now.

@lemire
Copy link
Member

lemire commented Oct 23, 2024

Let us merge.

@lemire lemire merged commit bd799d0 into master Oct 23, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants