Consensys / corset

4 stars 10 forks source link

Implement `Clone` for `ConstraintSet` #120

Open DavePearce opened 1 month ago

DavePearce commented 1 month ago

In principle, I see no reason why this cannot be cloneable. However, as it stands, there is a field Box<Fn> which is preventing this. See this thread for options.

The inability to clone the ConstraintSet means I am recompiling it from scratch every time within the testing framework, and that maybe leading to poor test performance.