-
Notifications
You must be signed in to change notification settings - Fork 225
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
Frontend is slower than necessary #791
Comments
Some preliminary testing reveals the source of the slowness is almost entirely within |
Here's a flamegraph of |
New flamegraph after the optimization in #869: Now only the middle tower is the parsing-related portion. Our runtime is now dominated by calls to |
Description
Aim
Trying to run
nargo test
on a reasonably small code sample with 4 tests.Expected behavior
The frontend should finish checking the code quickly and the backend should take a majority of the time as it goes through each test individually.
Bug
Instead, the frontend takes a relatively consistent ~2 seconds on my machine (Macbook M1 Pro) despite the small source code size. We should investigate the reason(s) for this and fix them since the front end of a compiler should be able to achieve ~100k lines of code per second for a similar feature set to noir (citation needed). It is unclear how much of these 2 seconds are startup time or time that would scale with program size.
The text was updated successfully, but these errors were encountered: