HachiSecurity / plc-llvm

A compiler from Plutus Core to LLVM IR.
10 stars 0 forks source link

Optimisation: identify fully-applied calls to built-in functions #55

Open mbg opened 2 years ago

mbg commented 2 years ago

Function applications are pretty expensive right now: nested applications always result in a lot of continuation closures and curried functions are also not cheap. An easy optimisation would be to identify built-in functions that are fully applied. Since we know how many arguments they take, we can optimise away all the unnecessary overheads.