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

Compile a stripped down version of barretenberg.wasm for blackbox functions #1823

Closed
kevaundray opened this issue Aug 25, 2023 · 0 comments · Fixed by #1824
Closed

Compile a stripped down version of barretenberg.wasm for blackbox functions #1823

kevaundray opened this issue Aug 25, 2023 · 0 comments · Fixed by #1824

Comments

@kevaundray
Copy link
Contributor

Problem

While we are still reliant on barretenberg.wasm for blackbox functions, we can use the barretenberg.wasm file to compute these blackbox functions. It allows us to not need to compile barretenberg from source. It is pretty slow to compile in wasmer and slow in general.

Solution

We can reduce compile times by only including the necessary components in the .wasm file for blackbox functions. This reduces the compile times from 15seconds to zero on compilers like LLVM and cranelift (not sure why it takes so long) -- you can verify this using Wasmer.

@github-project-automation github-project-automation bot moved this to Todo in A3 Aug 25, 2023
kevaundray added a commit that referenced this issue Aug 28, 2023
resolves #1823 

# Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if
the PR is ready to merge.
- [ ] If the pull request requires a cryptography review (e.g.
cryptographic algorithm implementations) I have added the 'crypto' tag.
- [ ] I have reviewed my diff in github, line by line and removed
unexpected formatting changes, testing logs, or commented-out code.
- [ ] Every change is related to the PR description.
- [ ] I have
[linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
this pull request to relevant issues (if any exist).
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant