Mutable struct vs closure

Don’t use @pure. It doesn’t mean what you think it means and Julia can often perform the optimizations you want with inlining alone.

2 Likes