scipr-lab / libiop

C++ library for IOP-based zkSNARKs
MIT License
147 stars 27 forks source link

Using FieldT vs FieldT& for constants #25

Open ValarDragon opened 4 years ago

ValarDragon commented 4 years ago

Throughout the code, classes often have functions to return constants. e.g. field_subset.generator(), field_subset.shift()

Does having these functions return FieldT, or FieldT& make any performance difference? If so, does it vary with field size? If not, then should we just default to FieldT?