What are some good ways to optimize Chialisp code for cost?

This question was asked at chia_network.public on Keybase.

Decreasing the number of apply operators is a good way to start. Functions should be used for preventing the recalculation of data and recursion, so if you aren’t doing one of those things, you should probably use an inline function or macro instead.

1 Like
1 Like