Plot a function faster?

There’s a thread on this and I made a suggestion for NRT rencdering, take the second version from here: