noir-lang / vscode-noir

Apache License 2.0
6 stars 7 forks source link

Add support for weighting opcodes of different types differently when profiling #81

Open TomAFrench opened 4 months ago

TomAFrench commented 4 months ago

We currently support reporting the number of opcodes on each line of Noir source, however a more useful metric is the number of constraints which these opcodes will generate. This is nontrivial as:

It's then not possible to give an exact count, what we can do instead is allow an inexact estimation of the opcode->constraint conversion, i.e.: