-
Notifications
You must be signed in to change notification settings - Fork 576
feat(avm)!: enable optimized poseidon2 rels #16467
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
feat(avm)!: enable optimized poseidon2 rels #16467
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ef0e50d to
2766d06
Compare
0b94d25 to
303c053
Compare
| let used_alias_defs_in_skippable = alias_expressions_in_order | ||
| .iter() | ||
| .filter(|(name, _, _)| skippable_if.as_ref().map(|id| id.identity == *name).unwrap_or(false)) | ||
| .filter(|(name, _, _)| { |
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.
weird - formatting changes?
| "relation_impls.hpp", | ||
| std::str::from_utf8(include_bytes!("../templates/relation_impls.hpp.hbs")).unwrap(), | ||
| ).unwrap(); | ||
| handlebars |
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.
same here
| ) | ||
| .unwrap(); | ||
|
|
||
| let optimized_relations = self.get_optimized_relations_file_names(); |
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.
This is new though
180f999 to
3a349c6
Compare
3a349c6 to
905e019
Compare

Updates bb-pilcom to change the generated files.
Now the choice of whether to use
generated/poseidon2_permoroptimized/poseidon2_permcan be made viabb-pilcomthrough the use offeature-flags(seeREADME.md).I could not convince CMake to ignore building
generated/poseidon2_permfile even if it wasn't included in any other files, so the solution for now was also to not generate theposeidon2_permfile when using the optimized one.This does mean that the generated folder should be deleted if switching between from generated to optimized to minimise wasted compiling time (this is already supported by the
-yflag in the cli)