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
Based on experiments on my machine, the get_poseidon_parameters function lengthens the build time of solana-sdk by 37%. This isn't a mystery since it's 43,000 lines long but I wonder if it can be optimized
The text was updated successfully, but these errors were encountered:
I think the best solution for that problem would be to hide the Poseidon functionality in Solana SDK behind a feature flag, so only people interested in ZK would need to build light-poseidon. I'd suggest to open an issue in Solana.
If that idea doesn't get accepted, then I don't think there is anything else we could do, sorry.
I don't think that building parameters can be optimized. These are exactly the same parameters which Circom uses. Providing parameters this way is what other Poseidon libraries do, including:
These parameters could be built either on compile time (which is what we are doing) or could be computed and built during runtime (no, we don't want that in Solana 😅 ). So I think what we are doing now is the best solution, even though it makes the build process longer.
Based on experiments on my machine, the get_poseidon_parameters function lengthens the build time of solana-sdk by 37%. This isn't a mystery since it's 43,000 lines long but I wonder if it can be optimized
The text was updated successfully, but these errors were encountered: