Material Function

Hi

I need to made two materials contain some common function inside. Function for calculation some data. Is MF to reduce performance of usable material or not? Or i need to create two mats with copy past instead of using MF for maximum performance?

(Based on my understanding of how shaders work):
The function would become part of the material, So there should not be a performance hit from using them outside of how they work.

I suggest using a material function for any common/repeated set of nodes as that will be easier to maintain then to keep updating all the different materials where it was copy-pasted to.

HTH