Skip to content

Conversation

@real-or-random
Copy link
Collaborator

No description provided.

@roconnor-blockstream
Copy link
Contributor

Arguably this whole function should be rewritten. Unfortunately that is risky, so maybe it is better to keep doing these micro-improvements.

Copy link
Contributor

@roconnor-blockstream roconnor-blockstream left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I ran some randomized testing comparing this to my Haskell implementation.

@real-or-random
Copy link
Collaborator Author

Arguably this whole function should be rewritten. Unfortunately that is risky, so maybe it is better to keep doing these micro-improvements.

You have a point, though. I mean, sure, let's merge this if we get the ACKs, but a proper rewrite is probably a better approach.

@real-or-random
Copy link
Collaborator Author

Haskell implementation.

Is that a full implementation of the SWU map? I guess we could then steal the algorithm.

@roconnor-blockstream
Copy link
Contributor

See #286 for my rewrite of this function, which would supersede this PR.

@jonasnick jonasnick closed this Jan 25, 2024
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