-
Notifications
You must be signed in to change notification settings - Fork 266
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
chore: CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. #3529
Conversation
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Values are compared against data from master at commit L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
MiscellaneousTransaction sizes based on how many contracts are deployed in the tx.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me. Just one comment about what looks like an empty file.
yarn-project/cli/src/cmds/compile.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to commit this?
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-packages: 0.16.3</summary> ## [0.16.3](aztec-packages-v0.16.2...aztec-packages-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](#3529)) ([396df13](396df13)) ### Documentation * Documenting issue with `context.block_header` ([#3565](#3565)) ([1237e26](1237e26)) </details> <details><summary>barretenberg.js: 0.16.3</summary> ## [0.16.3](barretenberg.js-v0.16.2...barretenberg.js-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](#3529)) ([396df13](396df13)) </details> <details><summary>barretenberg: 0.16.3</summary> ## [0.16.3](barretenberg-v0.16.2...barretenberg-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](#3529)) ([396df13](396df13)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-packages: 0.16.3</summary> ## [0.16.3](AztecProtocol/aztec-packages@aztec-packages-v0.16.2...aztec-packages-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](AztecProtocol/aztec-packages#3529)) ([396df13](AztecProtocol/aztec-packages@396df13)) ### Documentation * Documenting issue with `context.block_header` ([#3565](AztecProtocol/aztec-packages#3565)) ([1237e26](AztecProtocol/aztec-packages@1237e26)) </details> <details><summary>barretenberg.js: 0.16.3</summary> ## [0.16.3](AztecProtocol/aztec-packages@barretenberg.js-v0.16.2...barretenberg.js-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](AztecProtocol/aztec-packages#3529)) ([396df13](AztecProtocol/aztec-packages@396df13)) </details> <details><summary>barretenberg: 0.16.3</summary> ## [0.16.3](AztecProtocol/aztec-packages@barretenberg-v0.16.2...barretenberg-v0.16.3) (2023-12-05) ### Miscellaneous * CLI's startup time was pushing almost 2s. This gets the basic 'help' down to 0.16. ([#3529](AztecProtocol/aztec-packages#3529)) ([396df13](AztecProtocol/aztec-packages@396df13)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
cli
"does-almost-all-the-things", it basically needs to compile the entire codebase on startup if we naively import everything.cmds
folder. This is just nicer anyway as we shouldn't be creating multiple 1000's line files.utils
(please let's not name things utils, break it up into distinct groups with well named files), we use a new "granular" export api fromaztec.js
. The api isn't complete, it was just enough to import what was needed and get rid of about 200ms of overhead.preAction
hook which is when we callinitAztecJs
, a new method which triggers 1-200ms if initialization inbb.js
. This is now also called at start of sandbox. If running in jest, this is automatically called on module load, to save having to mess with a gazillion test files.package
before as part of build, but meant this step needed to be run after each change. Now thepackage
(what would be published to npm), is just used as part of the Docker build../build-system/start_interactive
script, to drop you into a shell with environment configured appropriately for running build-system commands. Useful for debugging rebuild patterns etc. See screenshot.