Skip to content

⚡ Optimize find program key by adding static buffers and reusing the same SHA256 while finding an off-curve key #62

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kuldotha
Copy link

| :Ready: | :Refactor: | :yes: | :--: |

Problem

A lot of garbage was being created while trying to find PDAs.

Solution

Merge Create and Find so the Sha256 instance can be reused. This alone reduces garbage created by 75%. Also removed memory stream and push the byte arrays directly into the Sha256 instance.

@notdanilo
Copy link

Nice one!

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.

2 participants