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

Circuits monorepo #67

Merged
merged 7 commits into from
Jan 31, 2024
Merged

Circuits monorepo #67

merged 7 commits into from
Jan 31, 2024

Conversation

LogvinovLeon
Copy link
Collaborator

@LogvinovLeon LogvinovLeon commented Jan 25, 2024

  • Makes circuits into a monorepo
circuits
├── main

Now you can run nagro commands using either --workspace flag to run it in all circuits or --package X to run a single package. You can also omit the flag and the main circuit will be the target.
So you can do things like: nargo info --workspace which will print you the table of circuit sizes.

  • Adjusts tests, contracts and github actions to a new structure. proofs, generated contracts and compile circuit artefacts now live in top-level
  • Adds a new GH workflow that profiles the circuits and posts the result as the artefact

The plan for the next PR is to diff those results with main, post the diff and the results as the sticky comment

@@ -1 +1,4 @@
node_modules
target
proofs
contract
Copy link
Contributor

Choose a reason for hiding this comment

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

Why contracts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because they're autogenerated

@@ -0,0 +1,27 @@
name: circuit profiling

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need profiling?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. Ideally I would like to set up a system that will print +X% on every PR changing a circuit. This is a first step into this direction

@LogvinovLeon LogvinovLeon merged commit 584cd54 into main Jan 31, 2024
5 checks passed
@LogvinovLeon LogvinovLeon deleted the leo/benchmarks branch January 31, 2024 16:20
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