Closed dvdplm closed 9 months ago
Kudos, SonarCloud Quality Gate passed!
I think that after this investigation it's clear that it'd require a pretty big re-architecting to fix this so if anything there could be a ticket to look into what the best way to go about that is. And measure if it's actually a problem. To me, a TODO:
should be about small things and local to the place in the code where they appear (and preferably always be matched with a ticket nr), otherwise it just becomes misleading.
It's like having a TODO: Make plonky2 fast
, which is a true todo
but also not something that belong to a single line of code or even single source file.
Fixes a TODO in the code to make
PolynomialBatch::from_values
takePolynomialValues
by ref instead of by value. Doing this doesn't really fix anything given that the subsequent FFT operations require ownership of the values. Still, I think it's better to have the clone happen in a single place than spread all over.