IntersectMBO / cardano-ledger

The ledger implementation and specifications of the Cardano blockchain.
Apache License 2.0
256 stars 158 forks source link

Remove unnecessary allocation in non-integral reference code #4460

Closed AndrewWestberg closed 3 months ago

AndrewWestberg commented 3 months ago

Description

Temp variables in ref_exp_ function are never used. They are just allocated and cleared. Since this is a recursive function and the reference code serves as a baseline for performance, it should be fixed.

Checklist