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

Flamegraph profile DEX alpha build winners #301

Closed
critesjosh opened this issue Jun 18, 2024 · 3 comments
Closed

Flamegraph profile DEX alpha build winners #301

critesjosh opened this issue Jun 18, 2024 · 3 comments
Assignees

Comments

@critesjosh
Copy link
Collaborator

critesjosh commented Jun 18, 2024

helper script: https://github.com/AztecProtocol/aztec-packages/pull/7077/files
profile:
Batcher contracts: https://github.com/porco-rosso-j/aztec-dex-build
AMM: https://github.com/madtechnologistproton/cloakfinance-ts

@critesjosh
Copy link
Collaborator Author

issues with installing old versions of the sandbox / bugs

@critesjosh
Copy link
Collaborator Author

So to get the constraint size - just rewrite one private function (swap_private), have dummy public function calls (only the ones that swap_private enqueues), also leave public storage out.
And then pass the private method into the flamegraph

@critesjosh critesjosh reopened this Jun 20, 2024
@critesjosh critesjosh self-assigned this Jun 21, 2024
@critesjosh
Copy link
Collaborator Author

private token swap:

Opcode count: 895, Total gates by opcodes: 442598, Circuit size: 443059

Image

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

No branches or pull requests

1 participant