Closed LindaGuiga closed 8 months ago
Kudos, SonarCloud Quality Gate passed!
I hadn't realized the gains would be that light (makes sense, it's halving the overhead of all increments), hence we may want to consider all possibilities around custom instructions before inserting new ones, especially if it incurs additional columns elsewhere?
I hadn't realized the gains would be that light (makes sense, it's halving the overhead of all increments), hence we may want to consider all possibilities around custom instructions before inserting new ones, especially if it incurs additional columns elsewhere?
It was made even lighter than expected because of the new pre-loading optimizations I think (originally, the gains were supposed to be higher than that). I agree it now makes sense to look into all possible instructions.
@LindaGuiga Should we close this?
I think it makes sense to close it yes. I don't think this is worth it as is.
This PR replaces all
%increment
(and%add_const(1)
) calls by an INCREMENT custom opcode. This saves 1435 cycles on the CPU side (and 7356 cycles on memory side) for erc20, but this comes at the expense of one additionalArithmeticStark
column.