You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been working to address the time needed to compile Barretenberg (eg #572).
We have analyzed compilation using: https://github.com/aras-p/ClangBuildAnalyzer. Cloning this into cpp/ and building it there, the "magic command" to produce a build analysis is: rm -rf build && cmake --preset clang15 -DCMAKE_CXX_FLAGS="-ftime-trace" && cmake --build --preset clang15 && ./ClangBuildAnalyzer/build/ClangBuildAnalyzer --all build artifacts && ./ClangBuildAnalyzer/build/ClangBuildAnalyzer --analyze artifacts > build-analysis
Suspected major culprits at the moment: transcript is all in a header; zeromorph is all in a header; new Univariate template parameter; use of MANY different tuple types in relations.
I spent a little bit of time investigating this in February 2025. Any change (even to a comment) in bb.main would about 50s to compile on personal dev client machine. I found that about 12s of this was due to function instantiation due to constexprness of our Barrett reduction code. I believe more time should be spend on this issue. Is there a way to schedule periodic reminders for an issue?
We have been working to address the time needed to compile Barretenberg (eg #572).
We have analyzed compilation using: https://github.com/aras-p/ClangBuildAnalyzer. Cloning this into cpp/ and building it there, the "magic command" to produce a build analysis is:
rm -rf build && cmake --preset clang15 -DCMAKE_CXX_FLAGS="-ftime-trace" && cmake --build --preset clang15 && ./ClangBuildAnalyzer/build/ClangBuildAnalyzer --all build artifacts && ./ClangBuildAnalyzer/build/ClangBuildAnalyzer --analyze artifacts > build-analysis
Here is the compilation analysis at the moment:
The text was updated successfully, but these errors were encountered: